.app { padding: 48px 0 100px; }

.dashboard-header { margin-bottom: 32px; }
.dashboard-header__title {
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--navy);
  margin: 0 0 6px;
}
.dashboard-header__sub { font-size: 16px; color: var(--ink-soft); margin: 0 0 10px; }

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(280px, 36%) 1fr;
  gap: 28px;
  align-items: start;
}
.dashboard-col--prefs .panel,
.dashboard-col--apps .panel { margin-bottom: 0; }

.apps-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.apps-panel__head h2 { margin-bottom: 0; }
.apps-search {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  min-width: 220px;
}
.apps-search:focus { outline: none; border-color: var(--accent); }

@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  margin: 40px auto;
}
.app-card h1 { font-size: 22px; color: var(--navy); }
.app-card p { font-size: 14px; }
.app-card .field { margin-bottom: 16px; }
.app-card .field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.app-card .field input {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}

.status-msg {
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 14px;
  display: none;
}
.status-msg.is-visible { display: block; }
.status-msg--error { background: #FDEDE9; color: #B23B22; border: 1px solid #F3C4B6; }
.status-msg--ok { background: #E9F7EF; color: #1A7A44; border: 1px solid #BFE6CC; }

/* Table */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.data-table th, table.data-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data-table th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--navy);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr.is-clickable { cursor: pointer; }
table.data-table tr.is-clickable:hover { background: var(--bg-alt); }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge--pending { background: #FFF3D6; color: #9A6B00; }
.badge--paid { background: #E9F7EF; color: #1A7A44; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.admin-header h1 { font-size: 24px; color: var(--navy); margin: 0; }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.panel h2 { font-size: 17px; color: var(--navy); margin-bottom: 16px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 8px;
}
.detail-grid div { font-size: 14px; }
.detail-grid strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); margin-bottom: 2px; }

.app-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.app-form .field-full { grid-column: 1 / -1; }
.app-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}
.app-form input, .app-form select, .app-form textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .detail-grid, .app-form { grid-template-columns: 1fr; }
}

/* Customer dashboard application links */
.app-item__resume {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.app-item__resume:hover { text-decoration: underline; }
.empty-state { color: var(--ink-soft); font-size: 14px; padding: 12px 0; }
