/* Portal wrapper */
.employee-portal {
  font-family: Arial, sans-serif;
  color: #222;
  font-size: .8em;
  background: #fff!important;
  padding: 20px;
}

/* Header */
.portal-header {
  background: #002147; /* deep navy */
  color: red!important;
  padding: 15px 20px;
  border-bottom: 4px solid #0066cc; /* accent blue underline */
}
.portal-header h1 {
  margin: 0;
  font-size: 14px;
  color: #fff;
}
.portal-subtitle {
  margin: 0;
  font-size: 11px;
  color: #cce0ff; /* soft blue highlight */
}

/* Modal */
.shared-modal-content {
  background: #fff;
  border: 2px solid #002147;
  border-radius: 6px;
  padding: 20px;
}
.shared-modal-content h2 {
  color: #002147;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 5px;
}
.shared-modal-close {
  color: #0066cc;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* Form section */
.form-section h2 {
  color: #002147;
  font-size: 16px!important;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 5px;
}
.form-explainer {
  color: #444;
  margin-bottom: 10px;
}

/* Buttons (Download/Print) */
.employee-portal button,
.employee-portal .button {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}
.employee-portal button:hover,
.employee-portal .button:hover {
  background: #004080; /* darker navy on hover */
}

/* === Base Report Styles === */
.daily-report {
  font-family: Arial, sans-serif;
  margin: 20px;
  color: #222;
  background: #fff;
}

/* Headings */
.daily-report h1 {
  font-size: 18px;
  color: #002147;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 4px;
  margin-bottom: 10px;
  font-weight: bold;
}
.daily-report h2 {
  font-size: 16px;
  color: #0066cc;
  margin-bottom: 8px;
  font-weight: bold;
}
.daily-report h3 {
  font-size: 14px;
  color: #002147;
  margin-bottom: 6px;
  font-weight: bold;
}

/* Date form */
.report-date-form {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.report-date-form label {
  font-weight: bold;
  color: #002147;
}
.report-date-form input[type="date"],
.report-date-form select,
.report-date-form button {
  padding: 6px 10px;
  font-size: 1rem;
}

/* Buttons */
.daily-report .button {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}
.daily-report .button:hover {
  background: #004080;
}

/* Tables (desktop default) */
.table-wrapper {
  overflow-x: auto;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.report-table th, .report-table td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: left;
  font-size: 12px;
  word-wrap: break-word;
}
.report-table th {
  background: #002147;
  color: #fff;
}
.report-table tr:nth-child(even) {
  background: #f2f7fc;
}
.report-table .grand-total td {
  border-top: 2px solid #002147;
  font-weight: bold;
  background: #cce0ff;
  color: #002147;
}

/* === Responsive Mobile Layout === */
@media (max-width: 768px) {
  /* Form stacks vertically */
  .report-date-form {
    flex-direction: column;
    align-items: stretch;
  }
  .report-date-form input[type="date"],
  .report-date-form select,
  .report-date-form button {
    width: 100%;
    box-sizing: border-box;
  }

  /* Buttons full width */
  .daily-report .button {
    width: 100%;
    text-align: center;
    margin-top: 5px;
  }

  /* Stacked table layout */
  .report-table, .report-table thead, .report-table tbody, .report-table th, .report-table td, .report-table tr {
    display: block;
    width: 100%;
  }
  .report-table thead {
    display: none;
  }
  .report-table tr {
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding: 10px 0;
  }
  .report-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    font-size: 0.85rem;
    border: none;
  }
  .report-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    text-align: left;
    font-weight: bold;
    color: #002147;
  }
}

/* Print rules */
@page {
  margin: 0.5in;
}
@media print {
  body * { visibility: hidden !important; }
  .daily-report, .daily-report * { visibility: visible !important; }
  .daily-report {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .daily-report button,
  .daily-report .report-date-form {
    display: none !important;
  }
}

/* Notification bars */
.notification-bar,
.notice {
  background: linear-gradient(to right, #f2f7fc, #e6f0fa) !important;
  border-left: 5px solid #0066cc !important;
  font-size: 0.95rem !important;
  color: #002147 !important;
}
.notice-info { background: linear-gradient(to right, #f2f7fc, #e6f0fa); border-left: 5px solid #0066cc; color: #002147; }
.notice-success { background: linear-gradient(to right, #e6f9f0, #d9f2e6); border-left: 5px solid #2e8b57; color: #1f4d2e; }
.notice-error { background: linear-gradient(to right, #ffecec, #ffd9d9); border-left: 5px solid #cc0000; color: #660000; }
.notice-warning { background: linear-gradient(to right, #fff8e6, #fff2cc); border-left: 5px solid #ff9900; color: #663300; }
