* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #edf4ff;
  color: #14213d;
}

.admin-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px;
}

.admin-card {
  background: #ffffff;
  border: 1px solid #dce8f8;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(7, 22, 47, 0.09);
  margin-bottom: 20px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
  color: #07162f;
}

.brand p {
  margin: 3px 0 0;
  color: #6f7b8f;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: #00c8ff;
  color: #07162f;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btn.dark {
  background: #07162f;
  color: #ffffff;
}

.btn.light {
  background: #ffffff;
  color: #07162f;
  border: 1px solid #dce8f8;
}

.btn.red {
  background: #d62828;
  color: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  color: #6f7b8f;
  margin-bottom: 7px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce8f8;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
  background: #ffffff;
}

textarea {
  min-height: 90px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th {
  background: #07162f;
  color: #ffffff;
  text-align: left;
  padding: 12px;
  font-size: 12px;
}

td {
  border-bottom: 1px solid #edf2f7;
  padding: 10px;
  vertical-align: middle;
}

td input,
td select {
  min-width: 90px;
  padding: 8px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notice {
  padding: 14px;
  border-left: 5px solid #00c8ff;
  background: #e8faff;
  border-radius: 12px;
  color: #123b8f;
  margin-bottom: 18px;
}

.danger-note {
  padding: 14px;
  border-left: 5px solid #d62828;
  background: #fff0f0;
  border-radius: 12px;
  color: #8a1717;
  margin-bottom: 18px;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  width: min(440px, 100%);
}

.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eefbff;
  color: #123b8f;
  font-weight: 900;
  font-size: 12px;
}

@media (max-width: 760px) {
  .grid,
  .grid3 {
    grid-template-columns: 1fr;
  }

  .admin-top {
    display: block;
  }

  .actions {
    margin-top: 15px;
  }

  .admin-wrap {
    padding: 16px;
  }
}


/* =========================================================
   ATECH MEDIA ADMIN PORTAL LUXURY UPGRADE
   Add this to the bottom of proposal-assets/css/admin.css
   ========================================================= */

:root {
  --deep-navy: #030b1c;
  --navy: #07162f;
  --blue: #123b8f;
  --cyan: #00c8ff;
  --purple: #6a35ff;
  --gold: #f4c542;
  --white: #ffffff;
  --soft-bg: #f5f8ff;
  --text-dark: #14213d;
  --muted: #6f7b8f;
  --border: #dce8f8;
  --danger: #d62828;
  --shadow-soft: 0 18px 45px rgba(7, 22, 47, 0.09);
  --shadow-card: 0 28px 70px rgba(7, 22, 47, 0.18);
}

/* ---------- GLOBAL ADMIN BACKGROUND ---------- */

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 200, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(106, 53, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #eaf0f8, #f9fbff);
  color: var(--text-dark);
}

/* ---------- MAIN WRAP ---------- */

.admin-wrap {
  max-width: 1280px;
  padding: 36px;
}

/* ---------- TOP HEADER ---------- */

.admin-top {
  position: relative;
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(0, 200, 255, 0.25), transparent 35%),
    radial-gradient(circle at bottom left, rgba(106, 53, 255, 0.2), transparent 35%),
    linear-gradient(145deg, var(--deep-navy), var(--navy) 52%, var(--blue));
  color: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.admin-top::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.admin-top > * {
  position: relative;
  z-index: 2;
}

.brand h1,
.admin-top h1 {
  color: var(--white);
  font-size: 34px;
  letter-spacing: -1px;
}

.brand p,
.admin-top p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- ADMIN CARDS ---------- */

.admin-card {
  position: relative;
  border: 1px solid rgba(220, 232, 248, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(0, 200, 255, 0.045), transparent 26%),
    #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.admin-card::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(0, 200, 255, 0.08),
      rgba(106, 53, 255, 0.04),
      transparent 65%
    );
  pointer-events: none;
}

.admin-card > * {
  position: relative;
  z-index: 2;
}

.admin-card h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 25px;
  letter-spacing: -0.5px;
}

.admin-card h2::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.admin-card h3 {
  margin-top: 24px;
  color: var(--navy);
}

/* ---------- BUTTONS ---------- */

.btn,
button.btn {
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #5ee7ff);
  color: var(--deep-navy);
  box-shadow: 0 12px 25px rgba(0, 200, 255, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 200, 255, 0.3);
  opacity: 0.96;
}

.btn.dark {
  background: linear-gradient(135deg, var(--deep-navy), var(--blue));
  color: var(--white);
  box-shadow: 0 12px 25px rgba(7, 22, 47, 0.18);
}

.btn.light {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(7, 22, 47, 0.06);
}

.btn.red {
  background: linear-gradient(135deg, #b91c1c, var(--danger));
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(214, 40, 40, 0.18);
}

/* ---------- FORM UPGRADE ---------- */

label {
  color: var(--muted);
  font-size: 11px;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 200, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 200, 255, 0.12);
  background: #fbfeff;
}

input[readonly] {
  background: #f5f8ff;
  color: var(--muted);
}

/* ---------- TABLE UPGRADE ---------- */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(7, 22, 47, 0.06);
  background: #ffffff;
}

table {
  overflow: hidden;
}

th {
  background:
    linear-gradient(135deg, var(--deep-navy), var(--blue));
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

td {
  color: var(--text-dark);
}

tbody tr:nth-child(even) td {
  background: #f7fbff;
}

tbody tr:hover td {
  background: #eefbff;
}

/* ---------- NOTICE / ALERTS ---------- */

.notice {
  border-left-color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(0, 200, 255, 0.12), rgba(255, 255, 255, 0.92));
  color: var(--blue);
  box-shadow: var(--shadow-soft);
}

.danger-note {
  border-left-color: var(--danger);
  background:
    linear-gradient(135deg, rgba(214, 40, 40, 0.08), rgba(255, 255, 255, 0.95));
}

/* ---------- PILLS ---------- */

.pill {
  background:
    linear-gradient(135deg, rgba(0, 200, 255, 0.13), rgba(106, 53, 255, 0.08));
  border: 1px solid rgba(0, 200, 255, 0.25);
  color: var(--blue);
}

/* ---------- LOGIN PAGE ---------- */

.login-page {
  background:
    radial-gradient(circle at top left, rgba(0, 200, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(106, 53, 255, 0.18), transparent 32%),
    linear-gradient(135deg, var(--deep-navy), var(--navy) 48%, var(--blue));
}

.login-box {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at top right, rgba(0, 200, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.login-box h1 {
  color: var(--navy);
}

.login-box p {
  color: var(--muted);
}

/* ---------- DASHBOARD EMPTY STATE ---------- */

td[colspan="6"] {
  padding: 30px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 760px) {
  .admin-wrap {
    padding: 16px;
  }

  .admin-top {
    padding: 22px;
  }

  .brand h1,
  .admin-top h1 {
    font-size: 27px;
  }

  .admin-card {
    border-radius: 22px;
    padding: 18px;
  }

  .actions {
    gap: 6px;
  }

  .btn {
    width: 100%;
  }
}


/* =========================================================
   DASHBOARD APPROVAL STATUS
   ========================================================= */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.status-pill.pending {
  background: #fff8dc;
  color: #8a6500;
  border: 1px solid rgba(244, 197, 66, 0.35);
}

.status-pill.approved {
  background: #e8faff;
  color: #086b80;
  border: 1px solid rgba(0, 200, 255, 0.4);
}

.status-meta {
  display: block;
  margin-top: 5px;
  color: #6f7b8f;
  font-size: 11px;
  line-height: 1.35;
}

/* =========================================================
   CLIENT APPROVAL DETAILS + SIGNATURE PREVIEW
   ========================================================= */

.signature-preview-box {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dce8f8;
  border-radius: 20px;
  background: #f7fbff;
}

.signature-preview-box img {
  display: block;
  max-width: 360px;
  max-height: 160px;
  object-fit: contain;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #dce8f8;
  border-radius: 14px;
  background: #ffffff;
}

.adjustment-entry {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #dce8f8;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 22, 47, 0.05);
}

.adjustment-entry > strong {
  display: block;
  margin-bottom: 12px;
  color: #07162f;
}

.adjustment-entry p {
  color: #6f7b8f;
}



/* =========================================================
   CLIENT UPDATE DASHBOARD BADGES
   ========================================================= */

.update-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.update-pill.updated {
  background: #eefbff;
  color: #086b80;
  border: 1px solid rgba(0, 200, 255, 0.45);
  box-shadow: 0 8px 20px rgba(0, 200, 255, 0.12);
}

.update-pill.none {
  background: #f4f7fb;
  color: #6f7b8f;
  border: 1px solid #dce8f8;
}

/* =========================================================
   REVIEWED CLIENT UPDATE BADGE
   ========================================================= */

.update-pill.reviewed {
  background: #eefaf0;
  color: #146c2e;
  border: 1px solid rgba(20, 108, 46, 0.28);
}

/* =========================================================
   COMPACT DASHBOARD ACTION BUTTONS
   Makes Preview, Edit, Share, View Updates, Duplicate, Delete
   smaller and cleaner inside dashboard tables.
   ========================================================= */

.admin-card table .actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 240px;
}

.admin-card table .actions .btn {
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  box-shadow: none;
}

.admin-card table .actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(7, 22, 47, 0.12);
}

.admin-card table .actions .btn.light {
  background: #ffffff;
  border: 1px solid #dce8f8;
  color: #07162f;
}

.admin-card table .actions .btn.dark {
  background: #07162f;
  color: #ffffff;
}

.admin-card table .actions .btn.red {
  background: #d62828;
  color: #ffffff;
}

/* Make View Updates less bulky */
.admin-card table .actions a[href*="client-updates"] {
  background: #eefbff;
  border: 1px solid rgba(0, 200, 255, 0.35);
  color: #086b80;
}

/* Make Share button clean if present */
.admin-card table .actions a[href*="share-message"] {
  background: #fff8dc;
  border: 1px solid rgba(244, 197, 66, 0.45);
  color: #8a6500;
}

/* Keep action column compact */
.admin-card table th:last-child,
.admin-card table td:last-child {
  width: 250px;
}

/* Improve row spacing */
.admin-card table td {
  vertical-align: middle;
}

/* On smaller screens, buttons remain usable */
@media (max-width: 900px) {
  .admin-card table .actions {
    max-width: 180px;
  }

  .admin-card table .actions .btn {
    font-size: 10px;
    padding: 6px 9px;
  }
}

/* =========================================================
   ADMIN CSS SAFETY FIXES
   Added after dashboard cleanup
   ========================================================= */

/* Dashboard empty state now uses 8 columns */
td[colspan="8"] {
  padding: 30px;
  color: #6f7b8f;
  font-weight: 800;
  text-align: center;
}

/* Prevent action buttons from becoming too wide inside tables on mobile */
.admin-card table .actions .btn {
  width: auto;
}

/* Keep dashboard action area clean */
.admin-card table td:last-child {
  white-space: normal;
}

/* Improve long text wrapping in dashboard cells */
.admin-card table td {
  overflow-wrap: anywhere;
}


/* =========================================================
   ADMIN TABLE WIDTH FIX
   Makes equipment, crew, and service names visible in full
   ========================================================= */

/* Make editor tables wider so columns have breathing space */
#equipmentEditorTable,
#crewEditorTable,
#serviceEditorTable {
  min-width: 1250px;
}

/* Keep table wrapper horizontally scrollable instead of squeezing inputs */
.table-wrap {
  overflow-x: auto;
}

/* Equipment table column widths */
#equipmentEditorTable th:nth-child(1),
#equipmentEditorTable td:nth-child(1) {
  width: 70px;
  text-align: center;
}

#equipmentEditorTable th:nth-child(2),
#equipmentEditorTable td:nth-child(2) {
  width: 360px;
  min-width: 360px;
}

#equipmentEditorTable th:nth-child(3),
#equipmentEditorTable td:nth-child(3) {
  width: 130px;
}

#equipmentEditorTable th:nth-child(4),
#equipmentEditorTable td:nth-child(4) {
  width: 110px;
}

#equipmentEditorTable th:nth-child(5),
#equipmentEditorTable td:nth-child(5),
#equipmentEditorTable th:nth-child(6),
#equipmentEditorTable td:nth-child(6),
#equipmentEditorTable th:nth-child(7),
#equipmentEditorTable td:nth-child(7) {
  width: 140px;
}

#equipmentEditorTable th:nth-child(8),
#equipmentEditorTable td:nth-child(8) {
  width: 130px;
}

/* Make equipment name input wider */
#equipmentEditorTable td:nth-child(2) input {
  width: 100%;
  min-width: 320px;
  white-space: normal;
}

/* Crew table name column */
#crewEditorTable th:nth-child(2),
#crewEditorTable td:nth-child(2) {
  width: 420px;
  min-width: 420px;
}

#crewEditorTable td:nth-child(2) input {
  width: 100%;
  min-width: 380px;
}

/* Service table name column */
#serviceEditorTable th:nth-child(2),
#serviceEditorTable td:nth-child(2) {
  width: 520px;
  min-width: 520px;
}

#serviceEditorTable td:nth-child(2) input {
  width: 100%;
  min-width: 480px;
}

/* Improve input readability inside editor tables */
#equipmentEditorTable input,
#equipmentEditorTable select,
#crewEditorTable input,
#crewEditorTable select,
#serviceEditorTable input,
#serviceEditorTable select {
  font-size: 14px;
}

/* Prevent buttons from forcing name fields to shrink */
#equipmentEditorTable .btn,
#crewEditorTable .btn,
#serviceEditorTable .btn {
  white-space: nowrap;
}