

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.5;
  color: #111;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background: #fff;
}

th {
  background-color: #006400;
  color: #fff;
  text-align: left;
  padding: 12px;
  font-weight: 600;
}

td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

/* Also relax any first-column fixed widths from legacy table layouts */
table tr td:first-child {
  width: auto !important;
}

/* Slightly tighter spacing on very narrow screens */
@media (max-width: 420px) {
  .checkbox-group, .radio-group {
    row-gap: 10px;
  }
}

::placeholder {
  color: #999;
}

/* Keep tables readable if a theme injects zebra striping; override to a subtle style */
table tr:nth-child(even) td {
  background: #fafafa;
}

/* === Landing & hero styles merged from original index inline <style> === */
:root{--white:#ffffff;--fg:#111827;--muted:#e5e7eb;--gray:#f3f4f6;--primary:#14532d;--primary-600:#166534;}
    html,body{margin:0;padding:0;background:var(--white);font-family:'Open Sans',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--fg);}
    .hero{text-align:center;padding:28px 16px;background:#0f5132;color:#fff;}
    .hero .logo{max-height:64px;margin-bottom:10px;}
    .hero h1{margin:6px 0;font-size:28px;color:#fff;font-weight:700;}
    .hero p{margin:0;font-size:15px;color:#fff;}
    .wrap{max-width:960px;margin:20px auto 28px;padding:0 14px;}
    .greybox{background:var(--gray);border:1px solid var(--muted);border-radius:14px;padding:20px;}
    .greybox h2{margin:0 0 10px;font-size:22px;font-weight:700;text-align:center;}
    .greybox p{margin:0 0 16px;line-height:1.5;}
    .actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px;}
    .btn{display:inline-block;text-align:center;background:var(--primary);color:#fff;border:0;border-radius:10px;padding:12px 14px;font-weight:700;cursor:pointer;text-decoration:none;font-family:'Open Sans',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}
    .btn:hover{background:var(--primary-600);}
    @media (max-width:560px){.actions{grid-template-columns:1fr;}}
    
    /* Footer text: 12px, light grey */
.footer {
  font-size: 12px;
  color: #636363;
}

/* Links: maroon, no underline (even on hover/visited) */
.footer a,
.footer a:visited,
.footer a:hover,
.footer a:focus {
  color: #800000;      /* maroon */
  text-decoration: none;
}

/* === Auth (Register/Login) form styles — scoped to avoid patient form === */

/* Layout */
.greybox form { max-width: 520px; margin: 0 auto; }
.greybox h2 { text-align: center; }

/* Labels */
.greybox form label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}

/* Inputs */
.greybox form input[type="text"],
.greybox form input[type="email"],
.greybox form input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--muted, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  line-height: 1.4;
}

.greybox form input[type="text"]:focus,
.greybox form input[type="email"]:focus,
.greybox form input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-600, #166534);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

/* Invalid state toggled by JS (.invalid class) */
.greybox form input.invalid {
  border-color: #b00020;
  box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.15);
}

/* Field errors (JS shows/hides) */
.field-error {
  display: none;
  color: #b00020;
  font-size: 12px;
  margin-top: 6px;
}

/* Hint text */
.hint {
  font-size: 12px;
  color: #6b7280;
  margin: 8px 0 0;
}

/* Alert banner at top of the form */
.alert {
  display: none;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px solid #f59e0b;
  background: #fef3c7;
  color: #7c2d12;
  border-radius: 10px;
  text-align: center;
}
.alert.show { display: block; }

/* Actions (Submit / Link) */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 520px) {
  .actions { grid-template-columns: 1fr; }
}

/* Buttons (uses your brand color) */
.btn {
  display: inline-block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--primary-600, #166534);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none; /* for <a class="btn"> */
}

.btn:hover,
.btn:focus { filter: brightness(0.95); }

.btn.secondary {
  background: transparent;
  border: 1px solid var(--muted, #e5e7eb);
  color: var(--primary-600, #166534);
  text-decoration: none;
}

/* Muted paragraph under title */
.greybox .muted {
  text-align: center;
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 13px;
}

/* === Dashboard styles merged from old inline block (cleaned) === */
/* Section titles centered (dashboard) */
h2.section-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

/* Quick actions grid (dashboard) */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 10px;
}
@media (max-width: 640px) {
  .quick-actions { grid-template-columns: 1fr; }
}

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--muted, #e5e7eb);
  border-radius: 12px;
  padding: 14px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.45;
}

/* Section spacing helpers */
.section { margin-top: 18px; }
.hr { height: 1px; background: var(--muted, #e5e7eb); border: 0; margin: 16px 0; }

/* Link-ish button variant */
.btn.linkish {
  background: transparent;
  color: var(--primary, #14532d);
  border: 0;
  padding: 0;
  text-decoration: underline;
}

/* Simple table class for dashboard lists (separate from global <table>) */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--muted, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
}
.table th, .table td {
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--muted, #e5e7eb);
}
.table th {
  text-align: left;
  background: #f9fafb;
  font-weight: 700;
}
.table tr:last-child td { border-bottom: 0; }

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e5f5ec;
  color: var(--primary-600, #166534);
}


/* Welcome sizes scoped to the existing table wrapper */
.welcome-two-col h2.section-title { font-size: 20px; font-weight: 700; }
.welcome-two-col p.muted { font-size: 15px; }


/* Change pic link style */
.welcome-two-col .small-link,
.welcome-grid .small-link {
  font-size: 13px;
  font-weight: 400;
  color: #400000;
  text-decoration: none;
}
.welcome-two-col .small-link:hover,
.welcome-grid .small-link:hover { text-decoration: none; }

/* Ensure readable table headers inside .table */
.table th { color: var(--fg, #111827); background: #f9fafb; }

/* Avatar presentation */
.avatar {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

/* Change profile pic */
  /* Center layout + labels + white browse button */
  .cp-center { display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; }
  .cp-center .small { font-size:12px; color:#6b7280; margin:0; }
  .btn-white {
    display:inline-block; background:#ffffff; color:#111827;
    border:1px solid #e5e7eb; padding:10px 14px;
    border-radius:0; cursor:pointer; text-decoration:none; font-weight:600;
  }
  #profile_pic { display:none; }
  #newBox { display:none; }
  
  /* Icon-only actions in Recent Activity */
.table .actions-cell { white-space: nowrap; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--muted, #e5e7eb);
  border-radius: 6px;
  margin-right: 6px;
  text-decoration: none;
  color: inherit;
}
.icon-btn:hover { background: #f9fafb; }
.icon-btn.danger { border-color: #ef4444; }

