:root {
  --navy: #16243a;
  --blue: #245a8d;
  --light: #f4f6f9;
  --border: #d9e0e8;
  --danger: #9f2f2f;
  --warning: #8a5a00;
  --success: #1f6b3a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: var(--light); color: #1d2630; }
.topbar { background: var(--navy); color: white; padding: 14px 5%; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.topbar strong { display: block; font-size: 1.2rem; }
.topbar small { opacity: .8; }
.topbar nav { display: flex; gap: 12px; flex-wrap: wrap; }
.topbar a { color: white; text-decoration: none; }
.container { width: min(1180px, 94%); margin: 25px auto; }
.card, .auth-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 20px; box-shadow: 0 6px 20px rgba(20,40,60,.06); }
.auth-card { width: min(460px, 100%); margin: 60px auto; }
.narrow { max-width: 720px; }
form { display: grid; gap: 10px; }
label { font-weight: 700; margin-top: 5px; }
input, select, textarea { width: 100%; border: 1px solid #bfc9d4; border-radius: 7px; padding: 11px; font: inherit; background: white; }
button, .button { display: inline-block; width: fit-content; border: 0; border-radius: 7px; background: var(--blue); color: white; padding: 10px 15px; text-decoration: none; cursor: pointer; font-weight: 700; }
.secondary { background: #596b7b; }
.danger { background: var(--danger); }
.small { padding: 7px 10px; font-size: .88rem; }
.inline { display: inline-block; margin-right: 5px; }
.stack { min-width: 190px; }
.alert { padding: 13px; border-radius: 8px; margin-bottom: 15px; background: #e8eef5; }
.alert.danger { background: #f7dddd; color: #6f1d1d; }
.alert.warning { background: #fff0ca; color: #664400; }
.alert.success { background: #daf2e2; color: #155d31; }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.stat span { display: block; color: #687786; margin-bottom: 8px; }
.stat strong { font-size: 1.45rem; }
.danger-box { border-left: 5px solid var(--danger); }
.warning-box { border-left: 5px solid #c17b00; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 11px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #eef2f6; }
.badge { display: inline-block; padding: 5px 8px; border-radius: 20px; background: #dfe7ef; font-size: .82rem; font-weight: 700; }
.badge.paid { background: #d6f0de; color: var(--success); }
.badge.overdue, .badge.disputed { background: #f5d7d7; color: var(--danger); }
.badge.due, .badge.partially-paid, .badge.pending-verification { background: #fff0c9; color: var(--warning); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.approval-card, .issue-row { border: 1px solid var(--border); padding: 14px; border-radius: 9px; margin: 10px 0; }
.issue-row span { display: block; color: #596775; margin-top: 5px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
.checkbox input { width: auto; margin-top: 4px; }
.method-box { display: none; border: 1px solid var(--border); padding: 14px; border-radius: 8px; }
canvas { width: 100%; max-width: 600px; height: 180px; border: 1px solid #777; background: white; touch-action: none; }
footer { text-align: center; color: #687786; padding: 25px; }
@media (max-width: 700px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .container { width: 96%; margin-top: 14px; }
  .card { padding: 15px; }
}


.install-button {
  background: #ffffff;
  color: #16243a;
  border: 1px solid rgba(255,255,255,.45);
  padding: 7px 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
  gap: 14px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.status-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 12px;
}
.status-item {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  background: #fff;
}
.required-flag {
  color: var(--danger);
  font-weight: 700;
}

/* TJF Lease Manager notification panel */

.notification-link {
  position: relative;
}

.notification-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-left: 3px;
}

.notification-card {
  margin-bottom: 16px;
}

.notification-unread {
  border-left: 5px solid #b42318;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.notification-priority {
  background: #b42318;
  color: white;
}

.notification-read-status {
  opacity: 0.7;
  font-size: 0.9rem;
}
