* { box-sizing: border-box; }
body { margin: 0; color: #16243a; font-family: Tahoma, Arial, sans-serif; font-size: 14px; background: #f3f6fa; }
a { color: #1759cf; text-decoration: none; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: #071c36; }
.login-card { width: min(410px, 100%); padding: 30px; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.login-card h1 { margin: 0 0 3px; }
.login-card p { margin-top: 0; color: #6b778a; }
.login-card .field { margin-top: 15px; }
.admin-header { color: #fff; background: #071c36; }
.admin-nav, .container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.admin-nav { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 15px; }
.admin-nav strong { font-size: 18px; }
.admin-nav a { color: #c9daef; }
.container { padding: 26px 0 50px; }
.toolbar { display: flex; margin-bottom: 20px; align-items: center; justify-content: space-between; gap: 15px; }
.toolbar h1 { margin: 0; font-size: 26px; }
.toolbar p { margin: 3px 0 0; color: #6b778a; }
.tabs { display: flex; gap: 7px; margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 13px; border-radius: 7px; white-space: nowrap; color: #3f5069; background: #e4eaf2; }
.tabs a.active { color: #fff; background: #1759cf; }
.card { margin-bottom: 18px; padding: 19px; border: 1px solid #e0e6ee; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(10,31,64,.04); }
.card h2 { margin: 0 0 15px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 4px; color: #536076; font-size: 12px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 10px; border: 1px solid #cbd5e2; border-radius: 6px; color: #16243a; font: inherit; background: #fff; }
textarea { min-height: 90px; resize: vertical; }
.button { display: inline-block; padding: 10px 14px; border: 0; border-radius: 6px; color: #fff; font: inherit; font-weight: 700; cursor: pointer; background: #1759cf; }
.button-orange { background: #f27820; }
.button-small { padding: 7px 10px; font-size: 12px; }
.button-danger { background: #bb3d3d; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 9px; border-bottom: 1px solid #e5eaf1; text-align: left; vertical-align: top; }
th { color: #718096; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.inline-form { display: inline; }
.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 7px; color: #176943; background: #e6f8ee; }
.alert-error { color: #9e3030; background: #fbeaea; }
.status { padding: 3px 7px; border-radius: 20px; color: #fff; font-size: 11px; background: #77869a; }
.status-new { background: #e46c18; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 20px; border-radius: 10px; color: #fff; background: #1759cf; }
.stat strong { display: block; font-size: 30px; line-height: 1.15; }
.stat span { color: #dbe7ff; }
.message { max-width: 420px; white-space: pre-wrap; }
.muted { color: #718096; }
.customer-thumb { display: block; width: 100px; height: 62px; border: 1px solid #e5eaf1; border-radius: 4px; object-fit: contain; background: #fff; }
@media (max-width: 700px) {
  .grid, .grid-3, .stats { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .admin-nav { min-height: 58px; }
}
