h2 { text-align: center; font-size: 24px; color: #333; margin-bottom: 20px; } /* Form Styling */ .info { width: 60%; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; gap: 15px; } /* Responsive Form Layout */ .row1, .row2, .row3 { display: grid; gap: 15px; } .row2, .row3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } label { font-weight: bold; display: block; margin-bottom: 6px; } input, textarea, select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; box-sizing: border-box; } /* Table styling */ .table-wrapper { overflow-x: auto; } table { width: 100%; border-collapse: collapse; margin: 20px 0; } table th, table td { border: 1px solid #ddd; padding: 8px; text-align: center; } table th { background-color: #007bff; color: white; font-weight: bold; } table tr:nth-child(even) { background-color: #f2f2f2; } table tr:hover { background-color: #ddd; } .download-btn { display: inline-block; padding: 10px 15px; background-color: #28a745; color: white; text-decoration: none; border-radius: 5px; margin-top: 15px; } .total-table { width: 35%; } /* Responsive Design */ @media (max-width: 1024px) { .info { padding: 15px; } .row2, .row3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .invoice-table th, .invoice-table td { font-size: 12px; padding: 8px; } } @media (max-width: 768px) { .row1, .row2, .row3 { grid-template-columns: 1fr; } } @media (max-width: 480px) { body { max-width: 100%; padding: 10px; } .info { padding: 10px; } table th, table td { font-size: 10px; padding: 6px; } } /* Ensure table responsiveness */ @media (max-width: 600px) { .table-wrapper { overflow-x: auto; } table { min-width: 600px; } } /* Extra Small Devices (max-width: 360px) */ @media (max-width: 360px) { h2 { font-size: 20px; margin-bottom: 15px; } .info { width: 100%; padding: 8px; } input, textarea, select { font-size: 14px; padding: 8px; } .download-btn { font-size: 14px; padding: 8px 12px; } table th, table td { font-size: 9px; padding: 5px; } .total-table { width: 100%; } }