/* Clips admin — same theme as the Furness Supply site admin */
:root {
  --side: #00232f; --side-2: #0b3645; --teal: #75b1c5; --teal-dark: #3c7f97; --bg: #f2f5f6; --card: #fff;
  --ink: #232a2f; --muted: #6a767d; --line: #dde4e7; --bad: #b3261e; --ok: #1d6b3a; --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
body.admin, body.login-page { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--teal-dark); }
h1 { font-size: 26px; margin: 0 0 .2em; }
h2 { font-size: 18px; margin: 0 0 .6em; }
code { background: #eef2f4; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .right { text-align: right; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #1b6f8c; outline-offset: 2px; }

/* layout */
body.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: #fff; display: flex; flex-direction: column; padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; padding: 0 22px 14px; display: block; }
.side nav a { display: flex; justify-content: space-between; align-items: center; color: #c7dae1; text-decoration: none; padding: 8px 22px; border-left: 3px solid transparent; }
.side nav a:hover { background: var(--side-2); color: #fff; }
.side nav a.is-active { background: var(--side-2); color: #fff; border-left-color: var(--teal); font-weight: 600; }
.side-h { margin: 16px 22px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7fa2b0; }
.side-foot { margin-top: auto; padding: 16px 22px 0; font-size: 13px; display: grid; gap: 8px; }
.side-foot a, .linkish { color: #c7dae1; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.side-foot a:hover, .linkish:hover { color: #fff; text-decoration: underline; }
.badge { background: #e8b339; color: #2b2100; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 0 8px; }
.main { padding: 28px 34px 80px; max-width: 1180px; width: 100%; }
@media (max-width: 860px) {
  body.admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .main { padding: 20px 16px 80px; }
}

/* common bits */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.crumb { margin: 0 0 4px; font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.card.empty { text-align: center; padding: 40px; }
.flash { padding: 11px 16px; border-radius: var(--radius); margin: 0 0 16px; font-weight: 500; }
.flash-ok { background: #e1f3e7; color: var(--ok); border: 1px solid #bfe3cb; }
.flash-bad { background: #fbe7e5; color: var(--bad); border: 1px solid #f1c5c0; }
.btn { display: inline-block; border: 1px solid #c4d0d5; background: #fff; color: var(--ink); border-radius: 6px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: #f1f6f8; }
.btn-primary { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: #2f6b82; }
.btn-danger { color: var(--bad); border-color: #e7b9b5; }
.btn-danger:hover { background: #fbe7e5; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-small { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; padding: 12px; }
form.inline { display: inline; }
.pill { background: #e9eef0; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 600; }
.pill.ok { background: #e1f3e7; color: var(--ok); }

/* tables */
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafcfc; }
.table tr:last-child td { border-bottom: 0; }
.table td.strong a { font-weight: 600; text-decoration: none; }
.actions { white-space: nowrap; }
.actions > * { margin-left: 4px; }

/* forms */
.form-card { max-width: 880px; }
.form-card.narrow { max-width: 520px; }
.field { margin-bottom: 20px; }
.field > label:not(.check) { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=password], .field input[type=email], .field input[type=number], .field input[type=date], .field input[type=datetime-local], .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #b8c5cb; border-radius: 6px; font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-dark); outline: 2px solid #b6dcea; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.help { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.req { color: var(--bad); }
.error { color: var(--bad); font-weight: 600; margin: 6px 0 0; font-size: 14px; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--bad); }
.savebar { position: sticky; bottom: 0; background: rgba(242, 245, 246, .96); border-top: 1px solid var(--line); padding: 14px 0; display: flex; gap: 10px; margin-top: 8px; z-index: 5; }

/* dashboard */
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 18px 0 24px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
.tile:hover { border-color: var(--teal); box-shadow: 0 2px 10px rgba(0, 35, 47, .1); }
.tile strong { font-size: 30px; color: var(--teal-dark); line-height: 1.1; }
.tile span { font-weight: 700; } .tile small { color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.plainlist li:last-child { border: 0; } .plainlist small { color: var(--muted); white-space: nowrap; }

/* platform checklist */
.icon-btn { border: 1px solid #c4d0d5; background: #fff; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); }
.icon-btn:hover { background: #fbe7e5; color: var(--bad); border-color: #e7b9b5; }
.checklist { list-style: none; margin: 0 0 14px; padding: 0; }
.check-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.check-item:last-child { border: 0; }
.check-item .check { font-weight: 400; }
.check-item.done span { color: var(--muted); text-decoration: line-through; }
.add-task { display: flex; gap: 8px; }
.add-task input[type=text] { flex: 1; padding: 8px 10px; border: 1px solid #b8c5cb; border-radius: 6px; font: inherit; }

/* sign in */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: linear-gradient(160deg, #00232f, #1a566b); }
.login-card { background: #fff; border-radius: 12px; padding: 34px 32px 26px; width: min(400px, 100%); text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.login-card h1 { margin: 10px 0 18px; }
.login-card form { text-align: left; display: grid; gap: 14px; }
.login-card label { display: grid; gap: 5px; font-weight: 600; }
.login-card input { padding: 11px 12px; border: 1px solid #b8c5cb; border-radius: 6px; font: inherit; }
