/* GoldenPen portal — RTL, bold-by-default per office UI standard */
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 700; background: #f4f1ea; color: #2b2b2b;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #1d1a14; color: #f5d87a; padding: 12px 24px;
}
.topbar .brand { font-size: 18px; }
.topbar nav a { color: #f0e6c8; margin-inline-start: 18px; text-decoration: none; }
.topbar nav a:hover { color: #ffd85e; }
.topbar .who { color: #9d9884; margin-inline-start: 18px; }
.topbar .logout { color: #e08b8b; }
main { max-width: 980px; margin: 28px auto; padding: 0 16px; }
footer { text-align: center; color: #8a8570; padding: 24px; }

h1 { color: #6b5411; }
.card {
  background: #fff; border: 1px solid #e2dcc8; border-radius: 12px;
  padding: 24px; margin-bottom: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.card.narrow { max-width: 420px; margin: 60px auto; }

label { display: block; margin: 14px 0 4px; }
input, textarea, select {
  width: 100%; padding: 10px; margin-top: 6px; font: inherit;
  border: 1px solid #cfc7ae; border-radius: 8px; background: #fbfaf6;
}
.opt { color: #948d74; font-weight: 400; }
.hint { color: #8a8570; font-size: 13px; }
code { background: #f0ecdd; padding: 1px 6px; border-radius: 4px; direction: ltr; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  border: 1px solid #b89a3e; background: #fff; color: #6b5411;
  cursor: pointer; font: inherit; text-decoration: none; margin-top: 10px;
}
.btn.primary { background: #b8912f; color: #fff; border-color: #a07c22; }
.btn.primary:hover { background: #a07c22; }
.btn.small { padding: 4px 12px; font-size: 13px; margin-top: 0; }

.alert { padding: 12px 16px; border-radius: 8px; margin: 12px 0; }
.alert.error { background: #fdeaea; color: #8d2323; border: 1px solid #eabbbb; }
.alert.success { background: #eaf7ec; color: #1d6b2c; border: 1px solid #b7e0bf; }
.alert.info { background: #eef3fa; color: #274a75; border: 1px solid #c3d4ea; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-card {
  background: #fff; border: 1px solid #e2dcc8; border-radius: 14px;
  padding: 26px; text-decoration: none; color: inherit; text-align: center;
  transition: transform .1s, box-shadow .1s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.service-card .icon { font-size: 44px; }
.service-card .icon-img {
  height: 150px; width: auto; max-width: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.service-card h2 { color: #6b5411; margin: 10px 0; }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

table.kv th { text-align: right; padding: 6px 0 6px 20px; color: #6b5411; white-space: nowrap; }
table.kv td { padding: 6px 0; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { padding: 8px 10px; border-bottom: 1px solid #eee4cd; text-align: right; }
table.list th { color: #6b5411; }
.clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status { padding: 3px 12px; border-radius: 99px; font-size: 13px; }
.status.done { background: #eaf7ec; color: #1d6b2c; }
.status.failed, .status.rejected { background: #fdeaea; color: #8d2323; }
.status.processing, .status.validating { background: #fff6df; color: #8a6a12; }
.status.queued, .status.uploaded { background: #eef3fa; color: #274a75; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: end; }
.grid .wide { grid-column: 1 / -1; }
.downloads { list-style: none; padding: 0; }
.downloads li { margin: 6px 0; }
