/* === CLEANED & ORGANIZED CSS === */


/* === RESET === */
/* ========== GLOBAL ========== */

body {

  /* === TYPOGRAPHY === */
    font-family: sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
  }
  
  /* Base container styling for general sections */
  
  /* === LAYOUT & CONTAINERS === */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
  }
  
  /* Flexbox ONLY on nav bar container */
  
  /* === NAVIGATION === */
  .topnav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  
  
  /* ========== ADMIN NAVIGATION ========== */
  
  .admin-nav {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-brand a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
  }
  
  .nav-links a:hover {
    color: #007bff;
  }
  
  
  /* ========== ADMIN: CUSTOMER VIEW ========== */
  
  .customer-view {
    max-width: 960px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }
  
  .customer-view h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .customer-view .section {
    display: block;
    width: 100%;
    margin-top: 2rem;
  }
  
  .customer-view .section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.25rem;
  }
  
  .customer-view table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.95rem;
  }
  
  .customer-view th, .customer-view td {
    padding: 0.6rem;
    border: 1px solid #ccc;
    text-align: left;
  }
  
  .customer-view th {
    background-color: #f1f1f1;
  }
  
  .customer-view .back-link {
    display: block;
    margin-top: 2rem;
    text-align: center;
  }
  
  .customer-view .button-link {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
  }
  
  .customer-view .button-link:hover {
    background: #0056b3;
  }
  
  .customer-view .profile-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 0.5rem;
    column-gap: 1rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }
  .customer-view .profile-info dt {
    font-weight: bold;
  }
  .customer-view .profile-info dd {
    margin: 0;
  }
  
  /* ========== ADMIN GENERAL PAGE ========== */
  
  .admin-page {
    max-width: 960px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
  }
  
  .admin-page h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  /* Left-align specific elements within admin-page */
  .admin-page table,
  .admin-page .admin-table,
  .admin-page .table-responsive,
  .admin-page .invoice-note,
  .admin-page .admin-alert {
    text-align: left;
  }
  
  /* ========== INVOICE PAGE STYLES ========== */
  
  .admin-page .section {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
  }
  
  .admin-page h3 {
    font-size: 1.1rem;
    margin-top: 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
  }
  
  .admin-page table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
  }
  
  .admin-page th, .admin-page td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    text-align: left;
  }
  
  .admin-page th {
    background-color: #f0f0f0;
  }
  
  .admin-page tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  
  /* === INVOICES === */
  .invoice-actions {
    display: flex;
    gap: 0.5rem;
  }
  
  .invoice-actions button {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    background: #ddd;
    cursor: not-allowed;
  }
  
  /* === STATUS BADGES === */
  .status-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.85rem;
    border-radius: 4px;
    color: white;
    font-weight: bold;
  }
  
  .status-rented {
    background-color: #28a745;
  }
  
  .status-available {
    background-color: #6c757d;
  }
  
  .status-pickup {
    background-color: #ffc107;
    color: #212529;
  }
  
  /* ========== DASHBOARD STYLES ========== */
  
  
  /* === DASHBOARD === */
  .dashboard {
    max-width: 1920px;
    margin: 2rem auto;
    padding: 0 2rem;
  }
  
  .card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .dashboard-card {
    flex: 1 1 30%;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  
  .dashboard-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #2c3e50;
  }
  
  .dashboard-card p {
    font-size: 1.75rem;
    font-weight: bold;
    color: #007bff;
  }
  
  
  
  
  /* ========== CUSTOMER PAGE STYLES ========== */
  
  .success-msg {
    color: green;
    margin-bottom: 1rem;
  }
  
  .error-msg {
    color: red;
    margin-bottom: 1rem;
  }
  
  .app-box {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    background: #fdfdfd;
  }
  
  
  /* === FORMS === */
  textarea {
    width: 100%;
    height: 60px;
    margin-top: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: inherit;
    padding: 0.5rem;
  }
  
  
  /* === BUTTONS === */
  .btn-approve {
    background-color: green;
    color: white;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    border: none;
    border-radius: 4px;
  }
  
  .btn-reject {
    background-color: crimson;
    color: white;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 4px;
  }
  
  .customer-table {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  .customer-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
  }
  
  .customer-table th,
  .customer-table td {
    padding: 0.5rem;
    border: 1px solid #ccc;
    text-align: left;
  }
  
  .customer-table th {
    background-color: #f1f1f1;
  }
  
  
  /* ========== INVOICES PAGE ========== */
  
  .invoice-section {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow-x: auto;
  }
  
  .invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
  }
  
  .invoice-table th,
  .invoice-table td {
    padding: 0.6rem;
    border: 1px solid #ccc;
    text-align: left;
  }
  
  .invoice-table th {
    background-color: #f1f1f1;
  }
  
  /* ========== LOGISTICS PAGE STYLES ========== */
  
  .logistics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .unit-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 100%;
  }
  
  .unit-card h3 {
    margin-bottom: 0.5rem;
    color: #007bff;
  }
  
  .rental-info {
    margin-top: 1rem;
    background: #f1f9ff;
    padding: 0.75rem;
    border-left: 4px solid #007bff;
    border-radius: 4px;
  }
  
  /* Footer */
  .admin-footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-top: 1px solid #ccc;
    font-size: 0.9rem;
    color: #666;
  }
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
  }
  
  /* ========== APPLICATION FORM ========== */

.application-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
}

.application-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.application-form input,
.application-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.application-form button {
  margin-top: 1.5rem;
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.application-form button:hover {
  background: #0056b3;
}

/* ========== FORM HEADINGS ========== */

.form-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* ========== FORM STYLING ========== */

.form-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #555;
}

.application-form {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
}

.form-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.form-col {
  flex: 1 1 300px;
  min-width: 280px;
}

.application-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.application-form input,
.application-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.application-form button {
  margin-top: 2rem;
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.application-form button:hover {
  background: #0056b3;
}

.success-msg {
  color: green;
  text-align: center;
  font-weight: bold;
}

.error-msg {
  color: red;
  text-align: center;
  font-weight: bold;
}
.button.small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.button.small:hover {
  background: #0056b3;
}
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
  
.dashboard-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
  
  
  
  
  .dashboard-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
  }
  
  .section-title {
    font-size: 1.25rem;
    margin-top: 2rem;
    color: #333;
  }
  
  .dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .dashboard-actions .btn {
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
  }
  
  .dashboard-actions .btn-secondary {
    background: #6c757d;
  }
  
  .rental-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .rental-card {
    flex: 1 1 300px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
  }
  
  .rental-card h4 {
    margin-top: 0;
  }
  
  .pickup-form {
    margin-top: 1rem;
  }
  
  /* Customer View Invoice Table */
  
  .invoice-table th,
  
  .status-paid {
    color: green;
    font-weight: bold;
  }
  
  .status-unpaid {
    color: crimson;
    font-weight: bold;
  }
  
  
  
  
  .invoice-table th,
  
  
  /* Customer Dashboard - Align Pickup All Units Form Left */
  .pickup-all-left {
    display: block;
    margin: 1rem 0;
    text-align: left;
  }
  
  /* Pickup All Units Form - Align Left */
  .pickup-all-form {
    margin-top: 1rem;
    text-align: left;
  }
  /* Form Alignment: Individual Unit Pickup */
  .unit-pickup-form {
    display: block;
    margin: 1rem 0;
    text-align: left;
  }
  
  /* === NAVIGATION === */
  .topnav {
    background-color: #003399;
    color: white;
    padding: 0rem;
  }
  .topnav .logo img {
    height: 100px;
  }
  .nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  .menu-toggle {
    display: none;
    font-size: 1.5rem;
  }
  
  /* === HERO SECTION === */
  .hero {
    text-align: center;
    padding: 1rem;
  }
  .hero-image {
    max-width: 300px;
    width: 100%;
    margin: 1rem auto;
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
    margin: 1rem 0 0.5rem;
  }
  .hero p {
    margin-bottom: 1rem;
  }
  .btn-primary {
    background-color: #003399;
    color: white;
    transition: background-color 0.2s ease;
  }
  
  .btn-primary:hover {
    background-color: #007bff; /* a darker green */
    cursor: pointer;
  }
  
  /* === SERVICES SECTION === */
  .services {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  .services ul {
    padding-left: 1.5rem;
    list-style: disc;
  }
  
  /* === MARKETS SECTION === */
  .markets {
    padding: 2rem 1rem;
    background-color: #f5f5f5;
    text-align: center;
  }
  .image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .image-row img {
    max-width: 300px;
    width: 100%;
    border-radius: 1rem;
  }
  
  /* === FOOTER === */
  .footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
  }
  
  /* === BUTTON STYLES (REUSE) === */
  .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
  }
  /* Admin Table */
  
  .admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
  }
  .admin-table th, .admin-table td {
    border: 1px solid #ccc;
    padding: 0.75rem;
    text-align: center;
  }
  .admin-table th {
    background-color: #f0f0f0;
  }
  .admin-alert {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem 1.5rem;
    border: 1px solid #ffeeba;
    border-radius: 0.5rem;
    margin: 1rem auto;
    max-width: 900px;
    text-align: center;
    font-weight: bold;
  }
  
  .admin-alert a {
    color: #856404;
    text-decoration: underline;
    margin-left: 0.5rem;
  }
  
  /* Admin Dashboard Layout Enhancements */
  
  
  
  
  /* Calendar Layout */
  .calendar {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    margin: 1rem auto;
  }
  .calendar th,
  .calendar td {
    border: 1px solid #ccc;
    padding: 8px;
    height: 100px;
    vertical-align: top;
  }
  .calendar th {
    background: #f0f0f0;
    text-align: center;
  }
  
  /* Event badges */
  .event {
    font-size: 0.8rem;
    margin-top: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-block;
  }
  .event.Delivery {
    background: #007bff;
    color: white;
  }
  .event.Pickup {
    background: #dc3545;
    color: white;
  }
  .event.Service {
    background: #28a745;
    color: white;
  }
  
  .calendar-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem auto 2rem;
  }
  
  .calendar-nav .btn {
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .calendar-nav .btn:hover {
    background: #0056b3;
  }
  strong.today {
    background: #ffc107;
    color: black;
    padding: 2px 5px;
    border-radius: 4px;
  }
  
  /* admin form */
  .admin-form {
    max-width: 500px;
    margin: 2rem auto;
  }
  
  .admin-form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
  }
  
  .admin-form input[type="text"],
  .admin-form input[type="email"],
  .admin-form input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .admin-form-title {
    text-align: center;
    margin-top: 3rem;
  }
  
  /* pending Customer App */
  .app-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .app-col {
    flex: 1;
    min-width: 250px;
  }
  
  /* === FEATURES SECTION === */
  .features-section {
    padding: 1rem 1rem;
    text-align: center;
  }
  .features-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  .feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  .feature-card {
    flex: 1 1 250px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }
  .feature-card h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
  }
  .feature-card p {
    font-size: 0.95rem;
    color: #555;
  }
  
  /* === Services Two-Column Section === */
  .services-highlight {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  }
  
  .services-highlight-wrapper {
    background: transparent;
    padding: 0;
    margin: 0 auto;
  }
  
  .services-two-col {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .services-image img {
    max-height: 300px;
    width: auto;
    border-radius: 0.75rem;
  }
  
  .services-list h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #003366;
  }
  
  .services-list ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: #333;
    font-size: 1rem;
  }
  
  .services-list li {
    margin-bottom: 0.75rem;
  }
  
  /* --- Admin Dashboard Stacked Layout --- */
.dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 24px 20px 18px 20px;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

/* --- Center quick access links at the bottom --- */
.footer-links, .dashboard-section.dashboard-full .quick-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0 auto 12px auto;
  width: 100%;
}

/* --- Center stats grid and cards --- */
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0 auto 32px auto;
  max-width: 700px;
}

.stats-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 18px 24px;
  text-align: center;
  min-width: 120px;
  margin: 0 8px;
}

/* --- Center tables in dashboard-section --- */
.dashboard-section .table-responsive {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-section .admin-table {
  margin: 0 auto;
}

/* --- Fix mobile header logo/menu cutoff --- */
.admin-nav, .nav-container {
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .admin-nav, .nav-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .nav-container {
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .admin-nav, .nav-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* --- Responsive Tables for Admin Dashboard --- */
@media (max-width: 700px) {
  .admin-table, .admin-table th, .admin-table td {
    font-size: 0.95em;
    white-space: normal;
    word-break: break-word;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
  }
  .admin-table {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0;
  }
}

@media (max-width: 500px) {
  .admin-table, .admin-table th, .admin-table td {
    font-size: 0.89em;
    padding: 6px 4px;
  }
  .admin-table {
    min-width: 480px;
  }
}

/* --- Responsive stacked (card-style) tables for admin --- */
@media (max-width: 700px) {
  .admin-table, .admin-table thead, .admin-table tbody, .admin-table tr {
    display: block;
    width: 100%;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table tr {
    margin-bottom: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    background: #fff;
    padding: 8px 0;
  }
  .admin-table td {
    display: flex;
    width: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
    align-items: center;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1em;
    position: relative;
  }
  .admin-table td:last-child {
    border-bottom: none;
  }
  .admin-table td:before {
    content: attr(data-label);
    font-weight: bold;
    min-width: 120px;
    color: #333;
    margin-right: 10px;
    flex-shrink: 0;
    display: inline-block;
  }
}

/* Responsive styles for customer dashboard tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #ddd;
}

@media (max-width: 768px) {
  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    display: block;
    margin-bottom: 1rem;
  }

  .admin-table td {
    display: block;
    text-align: right;
    position: relative;
    padding-left: 50%;
  }

  .admin-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 0.5rem;
    font-weight: bold;
    text-align: left;
  }
}

/* Additional styles for the dashboard */
.alert {
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
.status-pending {
  display: inline-block;
  padding: 3px 8px;
  background-color: #ffc107;
  color: #212529;
  border-radius: 4px;
  font-size: 0.85rem;
}
.status-confirmed {
  display: inline-block;
  padding: 3px 8px;
  background-color: #28a745;
  color: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
}
.overdue-row {
  background-color: rgba(255, 235, 238, 0.5);
}
.overdue-days {
  color: #d32f2f;
  font-weight: bold;
}
.dashboard-section {
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .app-box form label,
  .app-box form input,
  .app-box form button {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1.2rem;
  }

  .app-box form button {
    margin-top: 1rem;
  }
}

/* Styles for the app-box class */
.app-box {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

/* Updated styles for form components inside .app-box */
.app-box form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-box form label {
  flex: 1 1 100%;
  font-weight: bold;
}

.app-box form input,
.app-box form button {
  flex: 1 1 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.app-box form button {
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.app-box form button:hover {
  background-color: #0056b3;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
  .app-box form {
    flex-direction: column;
  }

  .app-box form input,
  .app-box form button {
    width: 100%;
  }
}
/* Past Due Invoice Styling */
.past-due-alert {
  border-left: 5px solid #dc3545 !important;
  background-color: #f8d7da !important;
  color: #721c24 !important;
  font-weight: bold;
}

.past-due-row {
  background-color: #ffe6e6 !important;
  border-left: 4px solid #dc3545;
}

.past-due-indicator {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  background-color: #dc3545;
  color: white;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}

.overdue-row {
  color: #dc3545 !important;
  font-weight: bold;
}

.overdue-days {
  color: #dc3545 !important;
  font-weight: bold;
  font-size: 1.1em;
}

.alert-link {
  color: inherit !important;
  text-decoration: underline;
  font-weight: bold;
}

.alert-link:hover {
  text-decoration: none;
}

/* === TERMS OF SERVICE STYLES === */
.terms-acceptance-section {
  background: #f8f9fa !important;
  padding: 15px !important;
  border-radius: 5px !important;
  margin: 15px 0 !important;
  border: 1px solid #dee2e6;
}

.terms-acceptance-section h4 {
  margin-bottom: 10px !important;
  font-size: 16px;
}

.terms-acceptance-section p {
  margin-bottom: 10px !important;
  font-size: 14px;
}

.terms-display {
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 10px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  margin: 10px 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.terms-acceptance-section label {
  display: flex !important;
  align-items: flex-start !important;
  margin: 15px 0 !important;
  cursor: pointer !important;
  font-size: 14px;
  line-height: 1.4;
}

.terms-acceptance-section input[type="checkbox"] {
  margin-right: 8px !important;
  margin-top: 2px !important;
  flex-shrink: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .terms-acceptance-section {
    padding: 12px !important;
    margin: 10px 0 !important;
  }
  
  .terms-acceptance-section h4 {
    font-size: 15px;
  }
  
  .terms-acceptance-section p {
    font-size: 13px;
  }
  
  .terms-display {
    max-height: 150px !important;
    font-size: 11px !important;
  }
  
  .terms-acceptance-section label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .terms-acceptance-section {
    padding: 10px !important;
  }
  
  .terms-display {
    max-height: 120px !important;
  }
  
  .terms-acceptance-section label {
    font-size: 12px;
  }
}
