﻿:root {
  --rk-red: #ed1c24;
  --rk-blue: #2f2a85;
  --rk-blue-dark: #211d66;
  --rk-white: #ffffff;
  --rk-text: #1a1a1a;
  --rk-muted: #5e6472;
  --rk-border: #e7e8ee;
  --shadow: 0 12px 28px rgba(25, 26, 35, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--rk-text);
  background: var(--rk-white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
}

.bg-shape-1 {
  width: 340px;
  height: 340px;
  top: -140px;
  right: -90px;
  background: radial-gradient(circle at center, rgba(237, 28, 36, 0.18), rgba(237, 28, 36, 0));
}

.bg-shape-2 {
  width: 420px;
  height: 420px;
  left: -150px;
  bottom: -170px;
  background: radial-gradient(circle at center, rgba(47, 42, 133, 0.16), rgba(47, 42, 133, 0));
}

.page-wrap {
  max-width: 980px;
  margin: 26px auto;
  padding: 0 16px 24px;
}

.brand-card,
.card {
  background: #fff;
  border: 1px solid var(--rk-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.brand-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.logo { width: 82px; height: 82px; object-fit: contain; }

h1 {
  margin: 0;
  color: var(--rk-blue-dark);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}

.subtitle {
  margin: 6px 0 0;
  color: var(--rk-muted);
  font-size: 0.95rem;
}

.card { margin-top: 16px; padding: 18px; }

.grid {
  display: grid;
  gap: 12px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--rk-blue-dark);
  font-size: 0.93rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd1df;
  border-radius: 10px;
  padding: 10px 12px;
  color: #171717;
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rk-red);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.14);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.actions.inline {
  justify-content: flex-start;
  align-items: end;
}

button {
  border: none;
  background: linear-gradient(135deg, var(--rk-blue-dark), var(--rk-blue));
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

button:hover { filter: brightness(1.05); }
button:disabled { opacity: 0.7; cursor: not-allowed; }

.admin-link {
  color: var(--rk-red);
  text-decoration: none;
  font-weight: 600;
}

.admin-link:hover { text-decoration: underline; }

.message {
  margin-top: 12px;
  min-height: 18px;
  font-weight: 600;
}

.message.ok { color: #177a36; }
.message.err { color: #bf1c2e; }

.hidden { display: none; }

.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  border: 1px solid #dee2ef;
  padding: 8px;
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f5fd;
  color: var(--rk-blue-dark);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.pending { background: #fff4d7; color: #8a6400; }
.badge.approved { background: #dbf6e3; color: #0f6f3a; }
.badge.denied { background: #ffdce2; color: #9a1026; }

.action-group {
  display: flex;
  gap: 6px;
}

.action-group .deny {
  background: linear-gradient(135deg, #8e1224, #c51f38);
}

@media (max-width: 760px) {
  .grid.two { grid-template-columns: 1fr; }
  .logo { width: 68px; height: 68px; }
  .actions { flex-direction: column; align-items: stretch; }
}
