* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

/* BACKGROUND */
/* COMMON BACKGROUND SETTINGS */
body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* TIMESHEET-Background */

body.timesheet {
  background-image: 
    linear-gradient(rgba(11,18,32,0.75), rgba(11,18,32,0.75)),
    url("../assets/timesheet-bg-1.jpg");
}

/* INVOICE */
body.invoice {
  background-image: 
    linear-gradient(rgba(11,18,32,0.75), rgba(11,18,32,0.75)),
   url("../assets/invoice-bg-3.jpg");
}
  

/* EXPENSES */
body.expenses {
  background-image: 
    linear-gradient(rgba(11,18,32,0.75), rgba(11,18,32,0.75)),
    url("../assets/expenses-bg-3.jpg");
}

/* LAYOUT */
.container {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

h1 { color:#32d296; margin-bottom:20px; }

.top-buttons {
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

button {
  padding:10px 20px;
  border:none;
  border-radius:6px;
  font-weight:bold;
  cursor:pointer;
}

.blue { background:#5aa7ff; }
.yellow { background:#ffcc00; }

.control-panel {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}

.field { display:flex; flex-direction:column; }

select, input {
  padding:8px;
  border-radius:6px;
  background:#1c2541;
  color:#fff;
  border:none;
}

.expected-box {
  background:#32d296;
  color:#000;
  padding:10px;
  border-radius:8px;
  text-align:center;
}

.table-container {
  margin-top:20px;
  background:#1c2541;
  padding:10px;
  border-radius:10px;
}

table { width:100%; border-collapse:collapse; }

th, td {
  padding:10px;
  text-align:center;
  border:1px solid rgba(255,255,255,0.1);
}

.summary-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
  margin-top:20px;
}

.card {
  padding:15px;
  border-radius:10px;
}

.weekday { background:#1c2541; }
.weekend { background:#2a1c1c; }

.actions {
  margin-top:20px;
  display:flex;
  gap:10px;
}

.save { background:#32d296; }
.export { background:#5aa7ff; }
.submit { background:#ffcc00; }

/* FORCE ALL TEXT TO WHITE */
body.timesheet {
  color: #ffffff;
}

/* MAKE EVERYTHING INHERIT WHITE */
body.timesheet * {
  color: inherit;
}
/* INPUT TEXT */
body.timesheet input,
body.timesheet select,
body.timesheet textarea {
  color: #ffffff;
}

/* LABELS */
body.timesheet label {
  color: #d1d5db; /* softer white */
}

/* TABLE TEXT */
body.timesheet th,
body.timesheet td {
  color: #ffffff;
}
/* PLACEHOLDER TEXT */
body.timesheet input::placeholder {
  color: #9ca3af;
}

/* HEADINGS */
body.timesheet h1 {
  color: #32d296; /* keep your green brand */
}
/* =========================
   INVOICE HEADER FIXES
========================= */

.header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.header-grid .field:last-child {
  text-align: right;
}

/* =========================
   INVOICE TITLE
========================= */

.invoice-title {
  font-size: 40px;
  font-weight: bold;
  text-align: right;
  color: #000;
  background: #2ecc71;
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
}
.btn-home {
  background: #00008B;   /* DARK Blue text  */
  color: #000;           /* DARK text */
  font-weight: bold;
}
.chart-card {
  height: 280px;
}
/* Fix date & time icon visibility */
input[type="date"],
input[type="time"] {
  color-scheme: dark;
  filter: invert(1);
}
/* Fix date & time icon visibility */
input[type="date"],
input[type="time"] {
  color-scheme: dark;
  filter: invert(1);
}
.footer {
  margin-top: 50px;
  padding: 20px;
  background: rgba(20,30,60,0.8);
  color: #8fa8ff;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.actions button {
  background: #2d7ef7 !important;
  color: #fff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 1 !important;
}

.actions button:hover {
  background: #1f5fd1 !important;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 🔥 IMPORTANT */
}

th, td {
  text-align: center;
  padding: 10px;
}

th:nth-child(8),
td:nth-child(8) {
  width: 160px; /* Location */
}

th:nth-child(9),
td:nth-child(9) {
  width: 100px; /* Food */
}
