/* =====================================================================
   Owen2k6 Business Portal — Stylesheet
   Owen2k6 Network Design Language, deep-skeuomorphic material kit v2:
   varnished planked-wood header with brass beading, coarse woven-fabric
   desk, stitched dark-leather panels, and POLISHED BRASS controls.
   The 2010s aqua gloss survives as finish (gel highlights, bevels) and
   as the network link blue — not as button colour.

   All textures are procedural (inline SVG feTurbulence data-URIs) so the
   portal ships with NO binary assets — one stylesheet, nothing else.
   This file is the design experiment for the wider network re-skin.
   ===================================================================== */

:root {
    --ink:        #ece3d3;   /* warm parchment text on the dark leather     */
    --ink-soft:   #ddd2bd;
    --muted:      #b0a48f;
    --link:       #a7c7ff;   /* network link blue                           */
    --link-hover: #cfe0ff;

    --felt:       #2b2118;   /* leather panel surface                       */
    --felt-edge:  #14100b;
    --slate:      #241b13;   /* content container leather                   */

    --aqua-1:     #fdf3cd;   /* polished brass, top sheen                   */
    --aqua-2:     #dcb254;
    --aqua-3:     #ad7f1a;

    --gold:       #ffcf6b;
    --money:      #7ee08a;

    --line:       #4a3b2a;
    --stitch:     rgba(214,178,120,.38);
    --radius:     9px;
}

* , *::before , *::after { box-sizing: border-box; }

html, body { min-height: 100vh; }

body {
    margin: 0;
    font: 15px/1.6 Verdana, Geneva, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background-color: #161310;
    /* dark woven fabric: warm lamplight falloff + vignette + coarse weave */
    background-image:
        radial-gradient(ellipse 130% 90% at 50% -10%, rgba(255,235,200,.05), rgba(0,0,0,0) 55%),
        radial-gradient(ellipse 140% 120% at 50% 40%, rgba(0,0,0,0) 55%, rgba(0,0,0,.42) 100%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.016) 0 1px, rgba(0,0,0,0) 1px 3px),
        repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 1px, rgba(0,0,0,0) 1px 3px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5 0.85' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' fill='%23181410'/%3E%3Crect width='160' height='160' filter='url(%23f)' opacity='0.5'/%3E%3C/svg%3E");
    background-attachment: fixed;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    overflow-wrap: anywhere;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

code {
    font-family: "Consolas", "Menlo", monospace;
    font-size: 13px;
    color: #ffe6b0;
    background: #171009;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #000;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
}

/* ---------------------------------------------------------------- header
   Varnished planked wood: grain + plank seams + wet top sheen, finished
   with a strip of brass beading along the bottom edge. */
.site-header {
    position: relative;
    padding: 16px 5%;
    color: #fff8ec;
    border-bottom: 3px solid #2c1a0c;
    background-color: #54371c;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,.30) 0%, rgba(255,255,255,.10) 16%,
                        rgba(255,255,255,.02) 44%, rgba(0,0,0,.16) 72%, rgba(0,0,0,.38) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1980' height='140'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.12' numOctaves='5' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.31 0 0 0 0 0.18 0 0 0 0 0.07 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='1980' height='140' fill='%236b4423'/%3E%3Crect width='1980' height='140' filter='url(%23w)' opacity='0.75'/%3E%3Cg fill='%23000000' opacity='0.32'%3E%3Crect x='218' width='2' height='140'/%3E%3Crect x='438' width='2' height='140'/%3E%3Crect x='658' width='2' height='140'/%3E%3Crect x='878' width='2' height='140'/%3E%3Crect x='1098' width='2' height='140'/%3E%3Crect x='1318' width='2' height='140'/%3E%3Crect x='1538' width='2' height='140'/%3E%3Crect x='1758' width='2' height='140'/%3E%3Crect x='1978' width='2' height='140'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='0.07'%3E%3Crect x='0' width='1' height='140'/%3E%3Crect x='220' width='1' height='140'/%3E%3Crect x='440' width='1' height='140'/%3E%3Crect x='660' width='1' height='140'/%3E%3Crect x='880' width='1' height='140'/%3E%3Crect x='1100' width='1' height='140'/%3E%3Crect x='1320' width='1' height='140'/%3E%3Crect x='1540' width='1' height='140'/%3E%3Crect x='1760' width='1' height='140'/%3E%3C/g%3E%3C/svg%3E");
    box-shadow: 0 3px 0 #7a5a34, 0 8px 18px rgba(0,0,0,.65),
                inset 0 1px 0 rgba(255,255,255,.25), inset 0 -14px 22px rgba(0,0,0,.28);
}
/* polished brass beading under the plank */
.site-header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
    background: linear-gradient(to bottom, #f6d78a, #a9781f);
    box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.header-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap;
}
.header-title {
    margin: 0;
    font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
    font-size: 1.85em; font-weight: normal; letter-spacing: .3px;
    text-shadow: 0 2px 3px rgba(0,0,0,.85), 0 1px 0 rgba(0,0,0,.55), 0 0 14px rgba(255,220,150,.18);
}
.header-title a { color: #fff8ec; }
.header-title a:hover { color: #fff; text-decoration: none; }

/* nav — dark leather lozenges that turn brass on hover/active */
.header-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.header-nav a {
    color: #e9d9b8; text-decoration: none;
    padding: 6px 13px; border-radius: 8px;
    border: 1px solid #120d08;
    background: linear-gradient(to bottom, #3a2e22, #241b12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 2px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.35);
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.header-nav a:hover {
    background: linear-gradient(to bottom, #fdf3cd 0%, #f0d489 30%, #dcb254 48%, #c39329 52%, #ad7f1a 84%, #c69c3e 100%);
    border-color: #6b4d10; color: #3a2708;
    text-shadow: 0 1px 0 rgba(255,246,215,.65); text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 3px rgba(96,66,10,.5), 0 2px 4px rgba(0,0,0,.4);
}
.header-nav a.active {
    background: linear-gradient(to bottom, #fdf3cd 0%, #f0d489 30%, #dcb254 48%, #c39329 52%, #ad7f1a 84%, #c69c3e 100%);
    border-color: #6b4d10; color: #3a2708;
    text-shadow: 0 1px 0 rgba(255,246,215,.65);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 3px rgba(96,66,10,.5), 0 2px 4px rgba(0,0,0,.4);
}
/* logged-in identity — an engraved nameplate + a matching log-out lozenge, set
   apart from the nav buttons by a carved groove so it reads as its own thing
   instead of a flat afterthought squeezed against the brass. */
.header-user {
    display: inline-flex; align-items: center; gap: 9px;
    margin-left: 5px; padding-left: 14px;
    border-left: 1px solid rgba(0,0,0,.5);
    box-shadow: -1px 0 0 rgba(255,255,255,.07);
}
.header-user__name {
    padding: 5px 12px; border-radius: 8px;
    color: #f4e8cf; font-size: 13px; font-weight: bold; letter-spacing: .3px;
    background: linear-gradient(to bottom, rgba(0,0,0,.36), rgba(0,0,0,.14));
    border: 1px solid rgba(0,0,0,.55);
    box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.10);
    text-shadow: 0 1px 2px rgba(0,0,0,.75);
}
/* inherits the leather-lozenge look from `.header-nav a` (brass on hover); just
   a touch smaller so it sits as a companion to the name plate, not a nav item. */
.header-user__out { font-size: 12px; padding: 5px 11px; }

/* ---------------------------------------------------------------- layout
   The content container is a broad stitched-leather desk blotter. */
.site-main { padding: 22px 4% 40px; }
.content-container {
    position: relative;
    max-width: 1200px; margin: 0 auto; padding: 22px 24px 28px;
    background-color: var(--slate);
    background-image:
        linear-gradient(160deg, rgba(255,255,255,.05), rgba(0,0,0,.24)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.19 0 0 0 0 0.14 0 0 0 0 0.10 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='170' height='170' fill='%23231a12'/%3E%3Crect width='170' height='170' filter='url(%23l)' opacity='0.75'/%3E%3C/svg%3E");
    border: 1px solid var(--felt-edge);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        inset 0 0 46px rgba(0,0,0,.38),
        0 14px 30px rgba(0,0,0,.55);
}
/* saddle stitching just inside the blotter edge */
.content-container::before {
    content: ""; position: absolute; inset: 7px; pointer-events: none;
    border: 1px dashed var(--stitch); border-radius: 9px;
}

h1 { font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 26px; font-weight: normal; margin: 6px 0 4px; color: #f5ead6; text-shadow: 0 2px 3px rgba(0,0,0,.6); }
h2 { font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 19px; font-weight: normal; margin: 0 0 14px; color: #f5ead6; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- cards
   Stitched dark-leather panels: grain texture, saddle stitch, deep seat. */
.card {
    position: relative;
    background-color: var(--felt);
    background-image:
        linear-gradient(160deg, rgba(255,255,255,.05), rgba(0,0,0,.24)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.19 0 0 0 0 0.14 0 0 0 0 0.10 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='170' height='170' fill='%23291f16'/%3E%3Crect width='170' height='170' filter='url(%23l)' opacity='0.75'/%3E%3C/svg%3E");
    border: 1px solid var(--felt-edge);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 16px 0;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        inset 0 0 34px rgba(0,0,0,.34),
        0 8px 18px rgba(0,0,0,.45);
}
/* saddle stitching just inside the edge */
.card::before {
    content: ""; position: absolute; inset: 6px; pointer-events: none;
    border: 1px dashed var(--stitch); border-radius: 6px;
}
.card > h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- tables */
.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { text-align: left; padding: 10px 12px; }
.grid thead th {
    color: #dcbe7e; font-weight: bold; font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
    background: linear-gradient(to bottom, #241b13, #160f0a);
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255,235,190,.08), inset 0 -1px 0 rgba(0,0,0,.5);
    text-shadow: 0 1px 1px rgba(0,0,0,.7);
}
.grid tbody tr { border-bottom: 1px solid rgba(0,0,0,.5); box-shadow: 0 1px 0 rgba(255,255,255,.03); }
.grid tbody tr:nth-child(even) { background: rgba(255,240,210,.022); }
.grid tbody tr:hover { background: rgba(233,190,80,.07); }
.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--money); }

/* ---------------------------------------------------------------- buttons
   POLISHED BRASS gel: bright bar-top sheen, dark turned edge, real weight. */
.btn, button {
    display: inline-block;
    font: bold 13px/1 Verdana, sans-serif;
    color: #3a2708; text-decoration: none; text-shadow: 0 1px 0 rgba(255,246,215,.65);
    padding: 8px 15px; border-radius: 9px; cursor: pointer;
    border: 1px solid #6b4d10;
    background-image: linear-gradient(to bottom, #fdf3cd 0%, #f0d489 30%, #dcb254 48%, #c39329 52%, #ad7f1a 84%, #c69c3e 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 3px rgba(96,66,10,.5),
                inset 0 0 0 1px rgba(255,235,180,.28), 0 3px 6px rgba(0,0,0,.5),
                0 1px 0 rgba(255,255,255,.05);
}
.btn:hover, button:hover {
    text-decoration: none;
    background-image: linear-gradient(to bottom, #fff8dc 0%, #f6dfa0 30%, #e6c168 48%, #d1a238 52%, #bb8d24 84%, #d3ab4e 100%);
}
.btn:active, button:active {
    transform: translateY(1px);
    background-image: linear-gradient(to bottom, #d9b358, #c1922d);
    box-shadow: inset 0 2px 5px rgba(80,52,8,.6), 0 1px 2px rgba(0,0,0,.4);
}

/* destructive: red enamel over the same brass forms */
button.danger, .btn.danger {
    color: #3d0d04; text-shadow: 0 1px 0 rgba(255,220,210,.5); border-color: #6e1f10;
    background-image: linear-gradient(to bottom, #f0b3a6 0%, #d96a55 40%, #b03a26 52%, #942c1a 88%, #a94a32 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 3px rgba(80,16,6,.55),
                inset 0 0 0 1px rgba(255,200,185,.25), 0 3px 6px rgba(0,0,0,.5);
}
button.danger:hover, .btn.danger:hover {
    background-image: linear-gradient(to bottom, #f6c3b6 0%, #e37a64 40%, #c04833 52%, #a23823 88%, #b65a41 100%);
}
button.danger:active, .btn.danger:active {
    background-image: linear-gradient(to bottom, #c05540, #96301c);
    box-shadow: inset 0 2px 5px rgba(60,10,4,.6), 0 1px 2px rgba(0,0,0,.4);
}

.inline { display: inline-block; margin: 0 5px 5px 0; vertical-align: middle; }
.actions form { display: inline-block; }

/* ---------------------------------------------------------------- forms */
label { display: block; margin: 12px 0; color: var(--ink-soft); font-size: 13px; }
label.check { display: flex; align-items: center; gap: 9px; }
input[type=text], input[type=password], select {
    width: 100%; max-width: 340px; margin-top: 5px;
    padding: 9px 11px; color: #f1e9d6;
    background: #151009; border: 1px solid #000; border-radius: 7px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.72), inset 0 -1px 0 rgba(255,255,255,.05);
    font: 14px Verdana, sans-serif;
}
input[type=text]:focus, input[type=password]:focus, select:focus {
    outline: none; border-color: #a9781f;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.72), 0 0 0 2px rgba(233,190,80,.4);
}
.inline input[type=text], .inline select { width: auto; display: inline-block; margin-top: 0; }

textarea {
    width: 100%; max-width: 520px; margin-top: 5px;
    padding: 9px 11px; color: #f1e9d6;
    background: #151009; border: 1px solid #000; border-radius: 7px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.72), inset 0 -1px 0 rgba(255,255,255,.05);
    font: 13px Consolas, Menlo, monospace; resize: vertical;
}
textarea:focus {
    outline: none; border-color: #a9781f;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.72), 0 0 0 2px rgba(233,190,80,.4);
}

.perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; margin: 10px 0; }
.perms label.check { margin: 3px 0; }
.rank { border-top: 1px solid rgba(0,0,0,.5); box-shadow: 0 -1px 0 rgba(255,255,255,.04); padding: 14px 0; }
.rank:first-of-type { border-top: 0; box-shadow: none; }
.rank-actions { margin-top: 10px; }

/* ---------------------------------------------------------------- badges
   Small enamelled pills — semantic hue kept, brass-era gel finish. */
.tag {
    font-size: 11px; font-weight: bold; padding: 2px 9px; border-radius: 10px; vertical-align: middle;
    color: #05301a; background: linear-gradient(to bottom, #9df0b4, #43c46b);
    border: 1px solid #1c7a3e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 2px rgba(0,40,15,.35), 0 1px 2px rgba(0,0,0,.4);
}
.status {
    font-size: 11px; font-weight: bold; padding: 3px 10px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px;
    border: 1px solid rgba(0,0,0,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 2px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.4);
    text-shadow: 0 1px 1px rgba(0,0,0,.45);
}
.status.open { color: #e3f0ff; background: linear-gradient(to bottom, #3a6fc8, #1e3f86); }
.status.paid { color: #d3fce4; background: linear-gradient(to bottom, #279a68, #0c4e33); }
.status.void { color: #eceadf; background: linear-gradient(to bottom, #5c584e, #34322b); }

/* ---------------------------------------------------------------- alerts
   Leather patches with the same saddle stitch as the panels. */
.alert {
    position: relative;
    padding: 12px 15px; border-radius: 8px; margin: 14px 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 18px rgba(0,0,0,.3), 0 3px 8px rgba(0,0,0,.35);
}
.alert::before {
    content: ""; position: absolute; inset: 4px; pointer-events: none;
    border: 1px dashed rgba(255,255,255,.16); border-radius: 5px;
}
.alert.ok  { background: linear-gradient(to bottom, #17402a, #0d2b1c); color: #b8f3ce; border: 1px solid #1c7a45; }
.alert.ok::before { border-color: rgba(160,240,190,.28); }
.alert.err { background: linear-gradient(to bottom, #3c1a14, #2a100c); color: #ffc9c0; border: 1px solid #8a2a1c; }
.alert.err::before { border-color: rgba(255,170,150,.28); }

/* ---------------------------------------------------------------- footer */
.site-footer {
    max-width: 1200px; margin: 26px auto 0; padding: 18px 24px;
    color: #a39680; font-size: 13px; line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,.07);
}
.site-footer .copyright { color: #8f8370; }
.site-footer a { color: var(--link); }

/* ---------------------------------------------------------------- login
   A stitched-leather folio sitting on the fabric desk. */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card {
    width: 380px; max-width: 92vw; padding: 30px 30px 34px;
    background-color: var(--felt);
    background-image:
        linear-gradient(160deg, rgba(255,255,255,.05), rgba(0,0,0,.24)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.19 0 0 0 0 0.14 0 0 0 0 0.10 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='170' height='170' fill='%23291f16'/%3E%3Crect width='170' height='170' filter='url(%23l)' opacity='0.75'/%3E%3C/svg%3E");
    border: 1px solid var(--felt-edge); border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        inset 0 0 46px rgba(0,0,0,.38),
        0 18px 40px rgba(0,0,0,.6);
    position: relative;
}
/* saddle stitching just inside the folio edge */
.login-card::before {
    content: ""; position: absolute; inset: 8px; pointer-events: none;
    border: 1px dashed var(--stitch); border-radius: 9px;
}
/* embossed gilt title on the leather cover */
.login-card h1 {
    font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 22px; margin: 0 0 4px;
    text-align: center; color: #f5ead6;
    text-shadow: 0 2px 3px rgba(0,0,0,.75), 0 0 12px rgba(255,220,150,.14);
}
.login-card .lead { text-align: center; margin: 0 0 18px; }
.login-card button { width: 100%; margin-top: 16px; padding: 11px; font-size: 14px; }
.login-card label { margin: 14px 0 0; }
.login-card input[type=text], .login-card input[type=password] { max-width: none; }

/* ---------------------------------------------------------------- cookie notice
   A small stitched-leather slip resting at the foot of the desk. */
#cookie-notice {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    max-width: 720px; width: calc(100% - 32px);
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 16px; z-index: 50;
    color: var(--ink); font-size: 13px;
    background-color: #2e241a;
    background-image:
        linear-gradient(160deg, rgba(255,255,255,.06), rgba(0,0,0,.26)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.19 0 0 0 0 0.14 0 0 0 0 0.10 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='170' height='170' fill='%23291f16'/%3E%3Crect width='170' height='170' filter='url(%23l)' opacity='0.75'/%3E%3C/svg%3E");
    border: 1px solid var(--felt-edge); border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 30px rgba(0,0,0,.6);
}
/* An id selector outranks the UA [hidden] rule, so `el.hidden = true` alone would
   NOT hide the notice — this makes the hidden attribute actually win. */
#cookie-notice[hidden] { display: none; }
#cookie-notice::before {
    content: ""; position: absolute; inset: 5px; pointer-events: none;
    border: 1px dashed var(--stitch); border-radius: 6px;
}
#cookie-notice p { margin: 0; flex: 1 1 340px; }
#cookie-notice .cn-actions { display: flex; gap: 8px; }
#cookie-notice button { padding: 7px 14px; }

@media (max-width: 620px) {
    .header-content { flex-direction: column; align-items: flex-start; }
    .site-main { padding: 16px 3% 32px; }
    .content-container { padding: 16px; }
}

/* owner-only destructive controls, set off from the form above by a groove */
.danger-zone { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.32);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* --- tabbed management page: brass folder tabs on a dark rail --- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; border-bottom: 2px solid rgba(0,0,0,.45); }
.tab {
    padding: 8px 16px; border-radius: 8px 8px 0 0; color: #e9d9b8; text-decoration: none;
    border: 1px solid #120d08; border-bottom: none; position: relative; top: 2px;
    background: linear-gradient(to bottom, #3a2e22, #241b12);
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.tab:hover { color: #fff; text-decoration: none; }
.tab.active {
    background: linear-gradient(to bottom, #fdf3cd 0%, #f0d489 30%, #dcb254 48%, #c39329 52%, #ad7f1a 84%, #c69c3e 100%);
    border-color: #6b4d10; color: #3a2708; text-shadow: 0 1px 0 rgba(255,246,215,.65);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
/* wide tables (transaction ledger) scroll inside their panel, never the page */
.table-scroll { overflow-x: auto; }

/* =====================================================================
   GoScore additions
   ---------------------------------------------------------------------
   Everything above this line is business.goplex.me's stylesheet, carried
   over verbatim so the two portals read as one network. Below are the
   components only a credit reference agency needs: the score plate, the
   band pills, the factor bars and the payment-history grid.

   The band colours are the ONE place this site departs from the brass
   palette, because a band has to be readable as a judgement at a glance.
   They are tuned for contrast on the dark leather rather than for hue
   variety, and every one is paired with its text label in the markup —
   colour is never the only thing carrying the meaning.
   ===================================================================== */

:root {
    --band-excellent: #7ee08a;
    --band-good:      #b6d96a;
    --band-fair:      #e8c35c;
    --band-poor:      #e39a52;
    --band-verypoor:  #d9705e;
    --unscored:       #8d8272;
}

/* ---------------------------------------------------------------- the plate
   An engraved brass score plate seated in the leather: the number, the band,
   and the scale it belongs to. */
.score-plate {
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
    padding: 22px 24px; margin: 4px 0 6px;
    border-radius: 12px; border: 1px solid #120d08;
    background: linear-gradient(to bottom, #2f2418, #1d160e);
    box-shadow: inset 0 1px 0 rgba(255,235,190,.10), inset 0 0 30px rgba(0,0,0,.45),
                0 8px 18px rgba(0,0,0,.45);
}
.score-plate__number {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 64px; line-height: 1; font-weight: bold;
    letter-spacing: -1px; color: var(--ink);
    text-shadow: 0 2px 4px rgba(0,0,0,.8), 0 0 18px rgba(255,220,150,.12);
}
.score-plate__number.unscored { font-size: 34px; color: var(--unscored); letter-spacing: 0; }
.score-plate__of { font-size: 15px; color: var(--muted); font-weight: normal; letter-spacing: 0; }
.score-plate__meta { flex: 1 1 260px; }
.score-plate__meta p { margin: 8px 0 0; }

/* band pills — the verdict, always accompanied by its text label */
.band {
    display: inline-block;
    font-size: 12px; font-weight: bold; letter-spacing: .6px; text-transform: uppercase;
    padding: 4px 13px; border-radius: 11px; color: #1a1209;
    border: 1px solid rgba(0,0,0,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 2px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.4);
    text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.band.excellent { background: linear-gradient(to bottom, #a8f0b4, var(--band-excellent)); }
.band.good      { background: linear-gradient(to bottom, #d3ec9c, var(--band-good)); }
.band.fair      { background: linear-gradient(to bottom, #f6e09a, var(--band-fair)); }
.band.poor      { background: linear-gradient(to bottom, #f3c393, var(--band-poor)); }
.band.verypoor  { background: linear-gradient(to bottom, #efa79a, var(--band-verypoor)); }
.band.unscored  { background: linear-gradient(to bottom, #b3a795, var(--unscored)); color: #241b13; }

/* ------------------------------------------------------------- the scale
   The lopsided TransUnion bands drawn to true proportion — the eye should
   see immediately that "Very Poor" really is most of the range. */
.scale { margin: 14px 0 0; }
.scale__track {
    display: flex; height: 13px; border-radius: 7px; overflow: hidden;
    border: 1px solid #000; box-shadow: inset 0 2px 5px rgba(0,0,0,.6);
}
.scale__seg { height: 100%; }
.scale__seg.excellent { background: var(--band-excellent); }
.scale__seg.good      { background: var(--band-good); }
.scale__seg.fair      { background: var(--band-fair); }
.scale__seg.poor      { background: var(--band-poor); }
.scale__seg.verypoor  { background: var(--band-verypoor); }
.scale__marker { position: relative; height: 0; }
.scale__marker span {
    position: absolute; top: -21px; transform: translateX(-50%);
    font-size: 11px; color: var(--ink); white-space: nowrap;
}
.scale__marker span::after {
    content: "\25BC"; display: block; text-align: center; font-size: 9px; color: var(--gold);
    text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.scale__legend { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------ factor bars
   Each factor's contribution, drawn from a centre line so a penalty reads
   as a penalty. Width is proportional to the factor's OWN range, not to the
   whole scale, because the factors have wildly different ceilings. */
.factors { margin: 6px 0 0; }
.factor { padding: 11px 0; border-top: 1px solid rgba(0,0,0,.45); box-shadow: 0 -1px 0 rgba(255,255,255,.035); }
.factor:first-child { border-top: 0; box-shadow: none; }
.factor__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.factor__name { color: var(--ink); font-size: 14px; }
.factor__pts { font-variant-numeric: tabular-nums; font-weight: bold; font-size: 14px; white-space: nowrap; }
.factor__pts.up   { color: var(--money); }
.factor__pts.down { color: #e79a9a; }
.factor__pts.flat { color: var(--muted); }
.factor__track {
    position: relative; height: 9px; margin: 7px 0 5px;
    border-radius: 5px; background: #150f09;
    border: 1px solid #000; box-shadow: inset 0 2px 4px rgba(0,0,0,.65);
}
.factor__zero { position: absolute; top: -2px; bottom: -2px; width: 1px; background: rgba(255,235,190,.35); }
.factor__fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.factor__fill.up   { background: linear-gradient(to bottom, #9df0b4, #43c46b); }
.factor__fill.down { background: linear-gradient(to bottom, #f0b3a6, #b03a26); }
.factor__detail { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------- payment history grid
   One square per period, newest last — the shape a UK credit report uses.
   Each square carries a title AND a letter, so the record stays legible
   without relying on colour alone. */
.payhist { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0 4px; }
.payhist__cell {
    width: 19px; height: 19px; border-radius: 3px;
    font: bold 10px/19px Verdana, sans-serif; text-align: center; color: #1a1209;
    border: 1px solid rgba(0,0,0,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
/* early gets a brighter, cooler green than on-time, so a run of them is
   visible at a glance without being mistaken for an ordinary payment */
.payhist__cell.early       { background: linear-gradient(to bottom, #b6f7c6, #5ad98c); }
.payhist__cell.ok          { background: var(--band-excellent); }
.payhist__cell.arrangement { background: var(--band-good); }
.payhist__cell.late        { background: var(--band-fair); }
.payhist__cell.late2       { background: var(--band-poor); }
.payhist__cell.late3       { background: #d9705e; }
.payhist__cell.missed      { background: #a83a2a; color: #ffe0d8; }

/* --------------------------------------------------- per-currency cards
   Each member economy reported on its own terms. Amounts NEVER cross
   between these boxes — that isolation is the whole design. */
.ccy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 12px 0 0; }
.ccy {
    padding: 13px 15px; border-radius: 8px;
    border: 1px solid #120d08;
    background: linear-gradient(to bottom, #31261a, #221a11);
    box-shadow: inset 0 1px 0 rgba(255,235,190,.07), 0 3px 8px rgba(0,0,0,.35);
}
.ccy__code { font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 17px; color: #f5ead6; }
.ccy__server { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.ccy__amount { margin: 9px 0 3px; font-size: 19px; color: var(--money); font-variant-numeric: tabular-nums; }
.ccy__stats { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------- income analysis bars
   Income above the centre line, spending below it, one column per month.
   Pure CSS — no chart library, and it reads at a glance whether somebody
   earns steadily or in lumps. */
.analysis { padding: 14px 0; border-top: 1px solid rgba(0,0,0,.45); box-shadow: 0 -1px 0 rgba(255,255,255,.035); }
.analysis:first-of-type { border-top: 0; box-shadow: none; }
.bars { display: flex; align-items: stretch; gap: 5px; margin: 10px 0 4px; }
.bars__col { flex: 1 1 0; min-width: 22px; text-align: center; }
.bars__in, .bars__out { height: 46px; display: flex; }
.bars__in  { align-items: flex-end; }
.bars__out { align-items: flex-start; border-top: 1px solid rgba(255,235,190,.25); }
.bars__in span, .bars__out span {
    display: block; width: 100%; border-radius: 3px 3px 0 0; min-height: 1px;
}
.bars__in span  { background: linear-gradient(to top, #43c46b, #9df0b4); }
.bars__out span { background: linear-gradient(to bottom, #b03a26, #f0b3a6); border-radius: 0 0 3px 3px; }
.bars__label { font-size: 10px; color: var(--muted); margin-top: 4px; }
.bars__key { font-size: 11px; color: var(--muted); margin: 2px 0 10px; }
.bars__key .k-in, .bars__key .k-out {
    display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: middle;
}
.bars__key .k-in  { background: #43c46b; }
.bars__key .k-out { background: #b03a26; }
.analysis .grid td:first-child { width: 150px; }

/* ------------------------------------------------------------- lookup box */
.lookup { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 4px 0 2px; }
.lookup input[type=text] { flex: 1 1 260px; max-width: 420px; margin-top: 0; }

/* ------------------------------------------------------- misc small bits */
.tag.pending   { background: linear-gradient(to bottom, #f6e09a, #d9b24d); color: #3a2708; border-color: #8a6a14; }
.tag.suspended { background: linear-gradient(to bottom, #efa79a, #b8503c); color: #3d0d04; border-color: #6e1f10; }
.tag.muted-tag { background: linear-gradient(to bottom, #b3a795, #7d7263); color: #241b13; border-color: #4a4034; }
.status.settled  { color: #d3fce4; background: linear-gradient(to bottom, #279a68, #0c4e33); }
.status.current  { color: #e3f0ff; background: linear-gradient(to bottom, #3a6fc8, #1e3f86); }
.status.arrears  { color: #3a2708; background: linear-gradient(to bottom, #f6e09a, #d9b24d); }
.status.defaulted, .status.written_off { color: #ffd9d0; background: linear-gradient(to bottom, #b8503c, #7a2a1c); }
.status.upheld   { color: #d3fce4; background: linear-gradient(to bottom, #279a68, #0c4e33); }
.status.rejected { color: #eceadf; background: linear-gradient(to bottom, #5c584e, #34322b); }

/* ------------------------------------------------- wrapping corrections
   The base stylesheet sets `overflow-wrap: anywhere` on body, which is right
   for long prose and codes in a narrow column but wrong for short labels: it
   happily snaps "SUBJECT" into "SUBJE / CT" and "CURRENT" into "CUR / RENT"
   as soon as a column gets tight. Labels should stay whole and the TABLE
   should scroll instead — .table-scroll already exists for exactly that, but
   it only engages once the table actually overflows, so the wide reporting
   tables need a floor to push against. */
.grid th,
.status, .band, .tag,
.factor__pts, .ccy__code {
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}
.grid th { white-space: nowrap; }
/* The reporting tables carry whole forms in their last two columns. Give them
   room to sit on one line and let .table-scroll do its job, rather than having
   the columns fold in on themselves. */
.table-scroll > .grid { min-width: 1460px; }
.grid td.actions { white-space: nowrap; }
.grid td.actions form.inline { white-space: nowrap; }
/* amounts and dates should never break across lines either */
.grid td.num { white-space: nowrap; }

/* admin-mode toggle, tucked beside the nameplate rather than sitting in the
   nav — it switches a state, it is not somewhere to go. Deliberately the
   quietest control in the header when off, and the loudest when on: an admin
   browsing past the hard-search gate must be able to tell at a glance. */
.admin-mode { display: inline-block; margin: 0; }
.admin-mode button {
    font: normal 11px/1 Verdana, sans-serif;
    letter-spacing: .3px; padding: 5px 9px; border-radius: 7px;
    vertical-align: middle;
    color: #9c8f78;
    background-image: none;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(0,0,0,.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    text-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.admin-mode button:hover {
    color: #f0e2c6; background: rgba(0,0,0,.34);
    background-image: none;
}
.admin-mode button.on {
    font-weight: bold; color: #ffe2d8;
    background-image: linear-gradient(to bottom, #c0533c, #8a2a1c);
    border-color: #6e1f10;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 10px rgba(200,70,45,.45);
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.admin-mode button.on:hover { background-image: linear-gradient(to bottom, #d4604a, #9c3222); }

/* a checkbox that sits inline inside a table-row form, rather than taking a
   line of its own the way label.check normally does */
.check.inline-check {
    display: inline-flex; width: auto; margin: 0 6px 0 0;
    gap: 5px; font-size: 11px; color: var(--muted);
    vertical-align: middle; white-space: nowrap;
}

/* a number and its unit, kept together on one line */
.term-input { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; }
.term-input input[type=text] { width: 5em; margin-top: 0; }
.term-input select { width: auto; margin-top: 0; }

/* compact "Today" button injected beside date fields */
.btn.today {
    padding: 6px 10px; font-size: 11px; margin-left: 6px;
    vertical-align: middle;
}

/* a quiet strip for "filed by / when", under a table row's heading */
.byline { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ tips
   "How to improve this score" — actionable, ordered by how many points are
   actually available, so the advice at the top is the advice worth taking. */
.tips { list-style: none; margin: 8px 0 0; padding: 0; }
.tip {
    position: relative;
    /* left padding must clear the absolutely-positioned gain badge, which grows
       with the number inside it — "+95" is wider than "+4" */
    padding: 11px 14px 11px 62px;
    margin: 8px 0; border-radius: 8px;
    border: 1px solid #120d08;
    background: linear-gradient(to bottom, #31261a, #221a11);
    box-shadow: inset 0 1px 0 rgba(255,235,190,.07), 0 2px 6px rgba(0,0,0,.3);
}
.tip__gain {
    position: absolute; left: 12px; top: 11px;
    min-width: 38px; text-align: center;
    font: bold 11px/18px Verdana, sans-serif;
    color: #05301a; border-radius: 9px; padding: 0 5px;
    background: linear-gradient(to bottom, #9df0b4, #43c46b);
    border: 1px solid #1c7a3e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.tip__gain.none { background: linear-gradient(to bottom, #b3a795, #7d7263); color: #241b13; border-color: #4a4034; }
.tip__what { color: var(--ink); }
.tip__why { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

/* suppressed rows — visible, struck through, never hidden */
.suppressed { opacity: .55; }
.suppressed td:first-child { border-left: 3px solid #8a2a1c; }

.empty { color: var(--muted); padding: 10px 0; }

@media (max-width: 620px) {
    .score-plate { gap: 16px; padding: 16px; }
    .score-plate__number { font-size: 48px; }
}
