/**
 * inetlocker — client area design system (inetsix)
 *
 * Loaded after Six's all.min.css (Bootstrap 3 + WHMCS styles).
 * Visual language: inetlocker logo colours (lime + charcoal), IBM Plex
 * (shared with inetMon), deep-green actions, soft white cards.
 * Layout direction "A — Claro": white top bar with horizontal menu.
 *
 * Sections
 *  1. Fonts
 *  2. Tokens
 *  3. Base & typography
 *  4. Page header & breadcrumb
 *  5. Buttons
 *  6. Forms
 *  7. Cards (panels), list groups, sidebar panels
 *  8. Tables & DataTables
 *  9. Labels, badges & status pills
 * 10. Alerts
 * 11. Modals, dropdowns, popovers, tooltips
 * 12. Tabs & pagination
 * 13. Utilities
 * 13b. Six component fixes (tiles, service labels, tickets)
 * 14. Shell — top bar, phone menu, page header, sidebar toggle, footer
 */

/* ------------------------------------------------------------------
 * 1. Fonts (IBM Plex — SIL Open Font License, see fonts/plex/LICENSE.txt)
 * ------------------------------------------------------------------ */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex/IBMPlexSans-Regular-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex/IBMPlexSans-Medium-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/plex/IBMPlexSans-Bold-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/plex/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/plex/IBMPlexMono-SemiBold-Latin1.woff2") format("woff2"); }

/* ------------------------------------------------------------------
 * 2. Tokens
 * ------------------------------------------------------------------ */
:root {
    --in-font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --in-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Brand (from the inetlocker logo) */
    --in-lime: #8cc63f;          /* logo green — decorative accents only */
    --in-lime-soft: #eef6e2;     /* active items, icon chips, "ok" pills */
    --in-lime-softer: #f6faf0;   /* hover rows */
    --in-charcoal: #2b2b2c;      /* dark surfaces, tooltips */
    --in-charcoal-2: #414142;    /* logo wordmark grey */
    --in-charcoal-3: #55575a;

    /* Actions & links (white text passes WCAG AA on these) */
    --in-action: #46801a;
    --in-action-hover: #3d7314;
    --in-green: var(--in-lime);
    --in-green-text: #3d7314;    /* green text on white / lime-soft */
    --in-link: #3d7314;
    --in-link-hover: #2f5a0f;

    /* Surfaces & text */
    --in-bg: #f5f6f3;
    --in-subtle: #eeefec;
    --in-card: #ffffff;
    --in-text: #2b2b2c;
    --in-text-strong: #1f1f20;
    --in-muted: #6d6f71;
    --in-border: #e6e8e3;
    --in-border-strong: #cfd3cb;

    /* Status */
    --in-ok: #3d7314;      --in-ok-soft: #eef6e2;
    --in-warn: #a35200;    --in-warn-soft: #fff4dc;
    --in-crit: #b91c1c;    --in-crit-soft: #fdecec;
    --in-info: #1d4ed8;    --in-info-soft: #e8effd;
    --in-neutral: #55585b; --in-neutral-soft: #eeefec;

    /* Shape */
    --in-radius-sm: 8px;
    --in-radius: 10px;
    --in-radius-lg: 14px;
    --in-radius-xl: 18px;
    --in-shadow-sm: 0 1px 2px rgba(43, 43, 44, .05);
    --in-shadow: 0 1px 2px rgba(43, 43, 44, .05), 0 8px 24px rgba(43, 43, 44, .06);
    --in-ring: 0 0 0 3px rgba(140, 198, 63, .35);
}

/* ------------------------------------------------------------------
 * 3. Base & typography
 * ------------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; }

body,
input,
button,
select,
textarea {
    font-family: var(--in-font);
    color: var(--in-text);
}

body {
    background: var(--in-bg);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--in-font);
    color: var(--in-text-strong);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}
h1, .h1 { font-size: 30px; }
h2, .h2 { font-size: 24px; }
h3, .h3 { font-size: 19px; }
h4, .h4 { font-size: 16px; }
h5, .h5 { font-size: 15px; }
h6, .h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

a { color: var(--in-link); }
a:hover,
a:focus { color: var(--in-link-hover); text-decoration: underline; }

strong, b { font-weight: 600; }
small, .small { font-size: 85%; }
hr { border-top-color: var(--in-border); }
code, kbd, pre, samp { font-family: var(--in-mono); }
code { background: var(--in-subtle); color: var(--in-text-strong); border-radius: 6px; }
pre { background: var(--in-subtle); border: 1px solid var(--in-border); border-radius: var(--in-radius); }

::selection { background: rgba(140, 198, 63, .35); }

/* Keyboard focus — visible for keyboard users only */
a:focus, .btn:focus, button:focus { outline: none; }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--in-action);
    outline-offset: 2px;
    border-radius: 4px;
}

.text-muted,
.help-block { color: var(--in-muted); }
.text-primary { color: var(--in-green-text); }
.text-success { color: var(--in-ok); }
.text-warning { color: var(--in-warn); }
.text-danger  { color: var(--in-crit); }
.text-info    { color: var(--in-info); }

.lead { font-size: 17px; color: var(--in-muted); font-weight: 400; }

#main-body {
    background: transparent;
    padding: 32px 0 48px;
}

/* ------------------------------------------------------------------
 * 4. Page header & breadcrumb
 * ------------------------------------------------------------------ */
.in-eyebrow {
    display: block;
    margin: 0 0 6px;
    color: var(--in-green-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

div.header-lined {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}
div.header-lined h1 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--in-text-strong);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
}
div.header-lined h1 small,
div.header-lined small {
    display: block;
    margin-top: 6px;
    color: var(--in-muted);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: normal;
    overflow: visible;
}
div.header-lined .breadcrumb {
    margin-top: 12px;
    border-radius: 0;
    font-size: 14px;
}
div.header-lined .breadcrumb li a { color: var(--in-muted); }
div.header-lined .breadcrumb > .active { color: var(--in-text-strong); }
@media (max-width: 600px) {
    div.header-lined h1 { font-size: 25px; }
    div.header-lined small { display: block; font-size: 15px; }
}

.breadcrumb {
    margin: 10px 0 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 14px;
}
.breadcrumb > li { color: var(--in-muted); }
.breadcrumb > li + li:before {
    content: "\203A";
    padding: 0 8px;
    color: var(--in-muted);
}
.breadcrumb > li > a { color: var(--in-muted); }
.breadcrumb > li > a:hover { color: var(--in-text-strong); text-decoration: none; }
.breadcrumb > .active { color: var(--in-text-strong); font-weight: 600; }

/* ------------------------------------------------------------------
 * 5. Buttons
 * ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--in-radius);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn i { line-height: 1; }
.btn.active, .btn:active { box-shadow: none; }
.btn:focus, .btn.focus { box-shadow: var(--in-ring); }
.btn.disabled, .btn[disabled], fieldset[disabled] .btn { opacity: .55; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
input.btn { display: inline-block; }   /* <input type=submit> can't be flex */
.input-group-btn > .btn { display: inline-block; }  /* keep BS3 input-group alignment */

.btn-lg, .btn-group-lg > .btn { min-height: 48px; padding: 11px 22px; font-size: 16px; border-radius: 12px; }
.btn-sm, .btn-group-sm > .btn { min-height: 34px; padding: 5px 12px; font-size: 14px; border-radius: var(--in-radius-sm); }
.btn-xs, .btn-group-xs > .btn { min-height: 26px; padding: 2px 8px; font-size: 12px; border-radius: 6px; }

/* Primary — deep green, white text */
.btn-primary,
.btn-primary:focus,
.btn-primary.focus {
    background: var(--in-action);
    border-color: var(--in-action);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary,
.btn-primary:active:hover,
.btn-primary:active:focus {
    background: var(--in-action-hover);
    border-color: var(--in-action-hover);
    color: #fff;
}
.btn-primary.disabled:hover, .btn-primary[disabled]:hover { background: var(--in-action); border-color: var(--in-action); }

/* Default — outlined */
.btn-default,
.btn-default:focus,
.btn-default.focus {
    background: var(--in-card);
    border-color: var(--in-border-strong);
    color: var(--in-text-strong);
}
.btn-default:hover,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default,
.btn-default:active:hover,
.btn-default:active:focus {
    background: var(--in-subtle);
    border-color: rgba(43, 43, 44, .28);
    color: var(--in-text-strong);
}

/* Success — same deep green (confirm / pay / order) */
.btn-success,
.btn-success:focus,
.btn-success.focus {
    background: var(--in-action);
    border-color: var(--in-action);
    color: #fff;
}
.btn-success:hover,
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success,
.btn-success:active:hover,
.btn-success:active:focus {
    background: var(--in-action-hover);
    border-color: var(--in-action-hover);
    color: #fff;
}

/* Info — soft lime (secondary actions WHMCS marks as "info") */
.btn-info,
.btn-info:focus,
.btn-info.focus {
    background: var(--in-lime-soft);
    border-color: transparent;
    color: var(--in-green-text);
}
.btn-info:hover,
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info,
.btn-info:active:hover,
.btn-info:active:focus {
    background: #e1efcd;
    border-color: transparent;
    color: var(--in-green-text);
}

/* Warning */
.btn-warning,
.btn-warning:focus,
.btn-warning.focus {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #1f1300;
}
.btn-warning:hover,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning,
.btn-warning:active:hover,
.btn-warning:active:focus {
    background: #d97f06;
    border-color: #d97f06;
    color: #1f1300;
}

/* Danger */
.btn-danger,
.btn-danger:focus,
.btn-danger.focus {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}
.btn-danger:hover,
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger,
.btn-danger:active:hover,
.btn-danger:active:focus {
    background: var(--in-crit);
    border-color: var(--in-crit);
    color: #fff;
}

/* Link */
.btn-link { color: var(--in-link); font-weight: 600; }
.btn-link:hover, .btn-link:focus { color: var(--in-link-hover); }

/* Button groups keep their joined corners */
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; }
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ------------------------------------------------------------------
 * 6. Forms
 * ------------------------------------------------------------------ */
label,
.control-label {
    color: var(--in-text-strong);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    height: 42px;
    padding: 9px 12px;
    background-color: var(--in-card);
    border: 1px solid var(--in-border-strong);
    border-radius: var(--in-radius);
    box-shadow: none;
    color: var(--in-text-strong);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
    border-color: var(--in-action);
    box-shadow: var(--in-ring);
    outline: none;
}
.form-control::placeholder { color: #8d908a; opacity: 1; }
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: var(--in-subtle);
    color: var(--in-muted);
}
textarea.form-control { height: auto; min-height: 110px; line-height: 1.5; }
select.form-control { padding-right: 32px; }
.input-lg, .form-group-lg .form-control { height: 48px; font-size: 16px; border-radius: 12px; }
.input-sm, .form-group-sm .form-control { height: 34px; padding: 5px 10px; font-size: 14px; border-radius: var(--in-radius-sm); }

.form-group { margin-bottom: 18px; }
.help-block { font-size: 13px; margin-top: 6px; }

/* Input groups */
.input-group-addon {
    background: var(--in-subtle);
    border: 1px solid var(--in-border-strong);
    border-radius: var(--in-radius);
    color: var(--in-muted);
    font-size: 15px;
}
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .dropdown-toggle { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .dropdown-toggle { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-btn > .btn { height: 42px; min-height: 0; }
.input-group-lg .input-group-btn > .btn { height: 48px; }

/* Checkboxes & radios use the brand green where supported */
input[type="checkbox"],
input[type="radio"] { accent-color: var(--in-action); width: 16px; height: 16px; }
.checkbox label,
.radio label,
.checkbox-inline,
.radio-inline { font-weight: 400; color: var(--in-text); }

/* Validation states */
.has-error .form-control { border-color: var(--in-crit); }
.has-error .form-control:focus { border-color: var(--in-crit); box-shadow: 0 0 0 3px rgba(185, 28, 28, .18); }
.has-error .help-block, .has-error .control-label { color: var(--in-crit); }
.has-success .form-control { border-color: var(--in-ok); }
.has-success .help-block, .has-success .control-label { color: var(--in-ok); }
.has-warning .form-control { border-color: #f59e0b; }
.has-warning .help-block, .has-warning .control-label { color: var(--in-warn); }

/* Fieldsets / legends */
legend {
    border-bottom: 1px solid var(--in-border);
    color: var(--in-text-strong);
    font-size: 17px;
    font-weight: 700;
    padding-bottom: 8px;
}

/* ------------------------------------------------------------------
 * 7. Cards (panels), list groups, sidebar panels
 * ------------------------------------------------------------------ */
.panel {
    background: var(--in-card);
    border: 1px solid var(--in-border);
    border-radius: var(--in-radius-lg);
    box-shadow: var(--in-shadow);
    margin-bottom: 24px;
}
.panel > .panel-heading {
    padding: 16px 20px;
    background: transparent;
    border-bottom: 1px solid var(--in-border);
    border-top-left-radius: calc(var(--in-radius-lg) - 1px);
    border-top-right-radius: calc(var(--in-radius-lg) - 1px);
    color: var(--in-text-strong);
}
.panel-title,
.panel > .panel-heading .panel-title {
    color: var(--in-text-strong);
    font-size: 16px;
    font-weight: 600;
}
.panel-title strong { font-weight: 600; }
.panel-body { padding: 20px; }
.panel-footer {
    padding: 14px 20px;
    background: var(--in-subtle);
    border-top: 1px solid var(--in-border);
    border-bottom-left-radius: calc(var(--in-radius-lg) - 1px);
    border-bottom-right-radius: calc(var(--in-radius-lg) - 1px);
}

/* Contextual panels: keep white cards, signal via a coloured top edge */
.panel-default,
.panel-primary,
.panel-success,
.panel-info,
.panel-warning,
.panel-danger { border-color: var(--in-border); }
.panel-primary > .panel-heading,
.panel-success > .panel-heading,
.panel-info > .panel-heading,
.panel-warning > .panel-heading,
.panel-danger > .panel-heading,
.panel-default > .panel-heading {
    background: transparent;
    border-color: var(--in-border);
    color: var(--in-text-strong);
}
.panel-primary { border-top: 3px solid var(--in-lime); }
.panel-success { border-top: 3px solid var(--in-green); }
.panel-info    { border-top: 3px solid var(--in-info); }
.panel-warning { border-top: 3px solid #f59e0b; }
.panel-danger  { border-top: 3px solid var(--in-crit); }

/* Six "accent" panels (dashboard): coloured top edge only */
.panel[class*="panel-accent-"] { border-top-width: 3px; }

/* List groups */
.list-group { margin-bottom: 20px; border-radius: var(--in-radius-lg); }
.list-group-item {
    padding: 12px 16px;
    background: var(--in-card);
    border: 1px solid var(--in-border);
    color: var(--in-text);
}
.list-group-item:first-child { border-top-left-radius: var(--in-radius-lg); border-top-right-radius: var(--in-radius-lg); }
.list-group-item:last-child { border-bottom-left-radius: var(--in-radius-lg); border-bottom-right-radius: var(--in-radius-lg); }
a.list-group-item,
button.list-group-item { color: var(--in-text); }
a.list-group-item:hover,
a.list-group-item:focus,
button.list-group-item:hover,
button.list-group-item:focus {
    background: var(--in-subtle);
    color: var(--in-text-strong);
    text-decoration: none;
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background: var(--in-lime-soft);
    border-color: var(--in-border);
    color: var(--in-green-text);
    font-weight: 600;
}
.panel > .list-group .list-group-item { border-left: 0; border-right: 0; }
.panel > .list-group:last-child .list-group-item:last-child {
    border-bottom-left-radius: calc(var(--in-radius-lg) - 1px);
    border-bottom-right-radius: calc(var(--in-radius-lg) - 1px);
}

/* Sidebar panels (WHMCS primary / secondary sidebars) */
.panel-sidebar {
    box-shadow: var(--in-shadow-sm);
    margin-bottom: 20px;
}
.panel-sidebar > .panel-heading {
    padding: 14px 16px;
    background: transparent;
    color: var(--in-text-strong);
}
.panel-sidebar .panel-title {
    font-family: var(--in-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--in-text-strong);
}
.panel-sidebar .panel-title > i { color: var(--in-green-text); margin-right: 8px; font-size: 14px; }
.panel-sidebar .panel-minimise { margin-top: 2px; color: #a3a6a0; font-size: 13px; }
.panel-sidebar .list-group-item {
    padding: 10px 16px;
    font-size: 14px;
}
.panel-sidebar .list-group-item i:not(.fa-circle):not(.fa-dot-circle):not(.no-transform) { color: var(--in-muted); }
.panel-sidebar a.list-group-item.active,
.panel-sidebar a.list-group-item.active:focus,
.panel-sidebar a.list-group-item.active:hover {
    background: var(--in-lime-soft);
    border-color: var(--in-border);
    color: var(--in-green-text);
}
.panel-sidebar a.list-group-item.active i,
.panel-sidebar a.list-group-item.active:focus i,
.panel-sidebar a.list-group-item.active:hover i { color: var(--in-green-text) !important; }
.panel-sidebar > .panel-footer { background: transparent; }

/* Wells */
.well {
    background: var(--in-subtle);
    border: 1px solid var(--in-border);
    border-radius: var(--in-radius-lg);
    box-shadow: none;
}

/* ------------------------------------------------------------------
 * 8. Tables & DataTables
 * ------------------------------------------------------------------ */
.table { color: var(--in-text); }
.table > thead > tr > th {
    padding: 12px 14px;
    background: var(--in-subtle);
    border-bottom: 1px solid var(--in-border);
    color: var(--in-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: middle;
}
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th {
    padding: 14px;
    border-top: 1px solid var(--in-border);
    vertical-align: middle;
}
.table-striped > tbody > tr:nth-of-type(odd) { background-color: #fafbf8; }
.table-hover > tbody > tr:hover { background-color: var(--in-subtle); }
.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td { border-color: var(--in-border); }

/* Table container = card */
.table-container {
    padding: 0;
    margin-bottom: 24px;
    background: var(--in-card);
    border: 1px solid var(--in-border);
    border-radius: var(--in-radius-lg);
    box-shadow: var(--in-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table.table-list { margin: 0; }
table.table-list thead th {
    padding: 12px 14px;
    background: var(--in-subtle);
    border-bottom: 1px solid var(--in-border) !important;
    color: var(--in-muted);
    text-align: left;
}
table.table-list tbody td {
    padding: 14px;
    font-size: 15px;
}
.table-list > tbody > tr > td,
.table-list > tbody > tr:nth-child(even) > td { background-color: var(--in-card); }
.table-list > tbody > tr:hover > td { background-color: var(--in-lime-softer); }
.table-list > tbody > tr > td a.border-left { border-left-color: var(--in-border); }

/* DataTables chrome (info bar, search, length, pagination) */
.dataTables_wrapper table.table-list thead th,
.dataTables_wrapper table.table-list thead th:nth-child(even) {
    border-bottom: 1px solid var(--in-border) !important;
    font-weight: 700;
}
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc {
    background-color: #e7e9e3;
    color: var(--in-text-strong);
}
.dataTables_wrapper .dataTables_info,
div.dataTables_wrapper div.dataTables_info {
    padding: 16px 18px !important;
    background: var(--in-card);
    border-bottom: 1px solid var(--in-border);
    color: var(--in-muted);
    font-size: 14px;
    font-weight: 500;
}
.dataTables_wrapper .dataTables_filter label { padding: 10px 14px; }
.dataTables_wrapper .dataTables_filter label .form-control {
    width: 240px;
    height: 38px;
    padding: 7px 12px 7px 36px !important;
    background: var(--in-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23586577' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
    border: 1px solid transparent;
    border-radius: var(--in-radius);
    font-size: 14px;
}
.dataTables_wrapper .dataTables_filter label .form-control:focus {
    background-color: var(--in-card);
    border-color: var(--in-action);
}
.dataTables_wrapper .dataTables_length {
    background: transparent;
    color: var(--in-muted);
    font-size: 13px;
}
.dataTables_wrapper .dataTables_length label { padding: 12px 18px; font-weight: 500; color: var(--in-muted); }
.dataTables_wrapper .dataTables_length label .form-control {
    height: 32px;
    padding: 4px 8px;
    border: 1px solid var(--in-border-strong);
    border-radius: var(--in-radius-sm);
}
.dataTables_wrapper .dataTables_paginate { padding: 8px 18px; }

@media (max-width: 600px) {
    .dataTables_wrapper .dataTables_filter { margin-top: 0; }
    .dataTables_wrapper .dataTables_filter label .form-control { width: 100%; }
    .dataTables_wrapper .dataTables_info { padding: 14px !important; }
}

/* ------------------------------------------------------------------
 * 9. Labels, badges & status pills
 * ------------------------------------------------------------------ */
.label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .01em;
}
.label-default { background: var(--in-neutral-soft); color: var(--in-neutral); }
.label-primary { background: var(--in-lime-soft); color: var(--in-green-text); }
.label-success { background: var(--in-ok-soft); color: var(--in-ok); }
.label-info    { background: var(--in-info-soft); color: var(--in-info); }
.label-warning { background: var(--in-warn-soft); color: var(--in-warn); }
.label-danger  { background: var(--in-crit-soft); color: var(--in-crit); }

.badge {
    padding: 3px 8px;
    background: var(--in-action);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.list-group-item > .badge { background: var(--in-subtle); color: var(--in-text-strong); }
.list-group-item.active > .badge { background: var(--in-card); color: var(--in-green-text); }

/* Status pills — WHMCS outputs .label.status.status-<state> */
.status,
.label.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 0;
    border-radius: 999px;
    background: var(--in-neutral-soft);
    color: var(--in-neutral);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.status:before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

/* Good */
.status-active, .status-open, .status-completed, .status-paid,
.status-delivered, .status-accepted {
    background: var(--in-ok-soft) !important; color: var(--in-ok) !important;
}
/* Needs attention */
.status-pending, .status-pending-transfer, .status-pending-registration,
.status-suspended, .status-grace, .status-redemption, .status-customer-reply,
.status-onhold, .status-draft, .status-payment-pending {
    background: var(--in-warn-soft) !important; color: var(--in-warn) !important;
}
/* Problem */
.status-unpaid, .status-overdue, .status-fraud, .status-collections,
.status-dead, .status-expired, .status-terminated, .status-lost {
    background: var(--in-crit-soft) !important; color: var(--in-crit) !important;
}
/* Informational / in progress */
.status-answered, .status-inprogress, .status-refunded, .status-sent {
    background: var(--in-info-soft) !important; color: var(--in-info) !important;
}
/* Finished / inactive */
.status-cancelled, .status-closed, .status-transferred-away,
.status-custom {
    background: var(--in-neutral-soft) !important; color: var(--in-neutral) !important;
}

/* ------------------------------------------------------------------
 * 10. Alerts
 * ------------------------------------------------------------------ */
.alert {
    padding: 14px 16px 14px 18px;
    border: 1px solid transparent;
    border-left-width: 4px;
    border-radius: var(--in-radius);
    font-size: 15px;
}
.alert h2, .alert h4 { font-size: 16px; margin-top: 0; color: inherit; }
.alert a, .alert .alert-link { color: inherit; font-weight: 600; text-decoration: underline; }
.alert-success { background: var(--in-ok-soft);   border-color: rgba(70, 128, 26, .25);  border-left-color: var(--in-lime);  color: #2f5a0f; }
.alert-info    { background: var(--in-info-soft); border-color: rgba(29, 78, 216, .2);   border-left-color: var(--in-info); color: #1e3a8a; }
.alert-warning { background: var(--in-warn-soft); border-color: rgba(163, 82, 0, .22);   border-left-color: #f59e0b;        color: #7a3d00; }
.alert-danger  { background: var(--in-crit-soft); border-color: rgba(185, 28, 28, .2);   border-left-color: var(--in-crit); color: #8a1515; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ------------------------------------------------------------------
 * 11. Modals, dropdowns, popovers, tooltips
 * ------------------------------------------------------------------ */
.modal-backdrop.in { opacity: .45; }
.modal-backdrop { background: #1a1a1b; }
.modal-content {
    border: 0;
    border-radius: var(--in-radius-xl);
    box-shadow: 0 30px 70px rgba(26, 26, 27, .28);
    overflow: hidden;
}
.modal-header,
.modal-content.panel-primary > .modal-header.panel-heading {
    padding: 18px 22px;
    background: var(--in-card);
    border-bottom: 1px solid var(--in-border);
    color: var(--in-text-strong);
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--in-text-strong); }
.modal-header .close { margin-top: 0; font-size: 26px; color: var(--in-muted); opacity: 1; text-shadow: none; }
.modal-header .close:hover { color: var(--in-text-strong); }
.modal-body { padding: 22px; }
.modal-footer,
.modal-content .modal-footer.panel-footer {
    padding: 14px 22px;
    background: var(--in-subtle);
    border-top: 1px solid var(--in-border);
}
.modal-content.panel-primary { border-top: 0; }

.dropdown-menu {
    padding: 6px;
    border: 1px solid var(--in-border);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(43, 43, 44, .14);
    font-size: 15px;
}
.dropdown-menu > li > a {
    padding: 8px 12px;
    border-radius: var(--in-radius-sm);
    color: var(--in-text);
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--in-subtle);
    color: var(--in-text-strong);
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background: var(--in-lime-soft);
    color: var(--in-green-text);
}
.dropdown-menu .divider { margin: 6px 0; background: var(--in-border); }
.dropdown-header { color: var(--in-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.popover {
    border: 1px solid var(--in-border);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(43, 43, 44, .14);
    font-family: var(--in-font);
}
.popover-title { background: var(--in-subtle); border-bottom-color: var(--in-border); font-weight: 600; }

.tooltip { font-family: var(--in-font); }
.tooltip-inner { padding: 6px 10px; background: var(--in-charcoal); border-radius: var(--in-radius-sm); font-size: 13px; }
.tooltip.top .tooltip-arrow { border-top-color: var(--in-charcoal); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--in-charcoal); }
.tooltip.left .tooltip-arrow { border-left-color: var(--in-charcoal); }
.tooltip.right .tooltip-arrow { border-right-color: var(--in-charcoal); }

/* ------------------------------------------------------------------
 * 12. Tabs & pagination
 * ------------------------------------------------------------------ */
.nav-tabs {
    border-bottom: 1px solid var(--in-border);
    margin-bottom: 20px;
}
.nav-tabs > li { margin-bottom: -1px; }
.nav-tabs > li > a {
    margin-right: 4px;
    padding: 10px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--in-muted);
    font-weight: 600;
}
.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
    background: transparent;
    border-bottom-color: var(--in-border-strong);
    color: var(--in-text-strong);
    text-decoration: none;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: transparent;
    border: 0;
    border-bottom: 3px solid var(--in-green);
    color: var(--in-text-strong);
}
.tab-content > .tab-pane { padding-top: 4px; }

.nav-pills > li > a { border-radius: var(--in-radius); color: var(--in-muted); font-weight: 600; }
.nav-pills > li > a:hover { background: var(--in-subtle); color: var(--in-text-strong); }
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus { background: var(--in-lime-soft); color: var(--in-green-text); }

.pagination > li > a,
.pagination > li > span {
    margin: 0 2px;
    min-width: 36px;
    padding: 6px 10px;
    border: 1px solid var(--in-border);
    border-radius: var(--in-radius-sm) !important;
    background: var(--in-card);
    color: var(--in-text);
    text-align: center;
}
.pagination > li > a:hover,
.pagination > li > span:hover { text-decoration: none; background: var(--in-subtle); color: var(--in-text-strong); border-color: var(--in-border-strong); }
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    background: var(--in-charcoal);
    border-color: var(--in-charcoal);
    color: #fff;
}
.pagination > .disabled > a,
.pagination > .disabled > span { color: #a3a6a0; background: var(--in-card); border-color: var(--in-border); }

/* Progress bars */
.progress { height: 10px; background: var(--in-subtle); border-radius: 999px; box-shadow: none; }
.progress-bar { background: var(--in-action); box-shadow: none; }
.progress-bar-success { background: var(--in-green); }
.progress-bar-warning { background: #f59e0b; }
.progress-bar-danger  { background: #ef4444; }

/* ------------------------------------------------------------------
 * 13. Utilities (used by inetsix templates in later phases)
 * ------------------------------------------------------------------ */
.in-card {
    background: var(--in-card);
    border: 1px solid var(--in-border);
    border-radius: var(--in-radius-lg);
    box-shadow: var(--in-shadow);
}
.in-card-body { padding: 20px; }
.font-mono,
.in-mono { font-family: var(--in-mono); font-variant-numeric: tabular-nums; }
.in-muted { color: var(--in-muted); }
.in-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--in-neutral);
    box-shadow: 0 0 0 3px rgba(85, 88, 91, .15);
    vertical-align: middle;
}
.in-dot-ok   { background: var(--in-lime); box-shadow: 0 0 0 3px rgba(140, 198, 63, .22); }
.in-dot-warn { background: #f5b800;          box-shadow: 0 0 0 3px rgba(245, 184, 0, .2); }
.in-dot-crit { background: #ef4444;          box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.in-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { transition: none !important; animation-duration: .01ms !important; }
}

/* ------------------------------------------------------------------
 * 13b. Six component fixes (from live preview)
 * ------------------------------------------------------------------ */

/* Sidebar panel buttons: keep side-by-side buttons on one line */
.panel-sidebar .panel-footer .btn,
.panel-sidebar .panel-body .btn { white-space: nowrap; }
.panel-sidebar .panel-footer .col-xs-6 { padding-left: 4px; padding-right: 4px; }
.panel-sidebar .panel-footer .btn { padding-left: 10px; padding-right: 10px; font-size: 14px; }

/* Dashboard tiles → one white card with four stats */
.tiles {
    margin-bottom: 24px;
    background: var(--in-card);
    border: 1px solid var(--in-border);
    border-radius: var(--in-radius-lg);
    box-shadow: var(--in-shadow);
    overflow: hidden;
}
.tiles .row { margin: 0; }
.tiles .tile {
    position: relative;
    padding: 20px 22px;
    background: var(--in-card);
    border-right: 1px solid var(--in-border);
}
.tiles .tile:hover { background: var(--in-lime-softer); }
.tiles .tile a { color: inherit; text-decoration: none; display: block; }
.tile .icon {
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--in-lime-soft);
    color: var(--in-green-text);
    font-size: 18px;
}
.tile .stat {
    margin-top: 6px;
    color: var(--in-text-strong);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}
.tile .title {
    margin-top: 4px;
    color: var(--in-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}
.tile .highlight { display: none; }
@media (max-width: 767px) {
    .tiles .tile:nth-child(1),
    .tiles .tile:nth-child(2) { border-bottom: 1px solid var(--in-border); }
}

/* Dashboard panels: drop Six's rainbow accent edges */
.client-home-panels .panel[class*="panel-accent-"] { border-top: 1px solid var(--in-border); }
.client-home-panels .panel > .panel-heading { background: transparent; }
.client-home-panels .panel > .panel-heading .panel-title i { color: var(--in-green-text); }
.client-home-panels .panel > .panel-footer { background: var(--in-subtle); }

/* Service status labels on the dashboard (Six forces white text) */
.div-service-status .label {
    width: auto !important;
    min-width: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.div-service-status .label-success { background: var(--in-ok-soft);   color: var(--in-ok); }
.div-service-status .label-warning { background: var(--in-warn-soft); color: var(--in-warn); }
.div-service-status .label-danger  { background: var(--in-crit-soft); color: var(--in-crit); }
.div-service-status .label-info,
.div-service-status .label-primary { background: var(--in-info-soft); color: var(--in-info); }
.div-service-status .label-default { background: var(--in-neutral-soft); color: var(--in-neutral); }

/* Ticket list: number as a quiet mono reference, not teal italics */
.ticket-number {
    font-family: var(--in-mono);
    font-size: 13px;
    font-style: normal;
    color: var(--in-muted);
}
.ticket-subject { color: var(--in-link); font-weight: 600; }
.ticket-subject.unread { font-weight: 700; }

/* ------------------------------------------------------------------
 * 14. Shell — layout A "Claro" (Phase 1)
 *     header.tpl · includes/navbar.tpl · pageheader.tpl · footer.tpl
 * ------------------------------------------------------------------ */

/* Wider container on large screens so the menu breathes */
@media (min-width: 1280px) {
    .container { width: 1240px; }
}

section#main-body {
    min-height: 420px;
    padding: 32px 0 48px;
    background: transparent;
}

/* Skip link (visible on keyboard focus only) */
.in-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 14px;
    background: var(--in-charcoal);
    border-radius: var(--in-radius);
    color: #fff;
    font-weight: 600;
}
.in-skip:focus { top: 12px; color: #fff; text-decoration: none; }

/* Top bar */
.in-topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--in-card);
    border-bottom: 1px solid var(--in-border);
    transition: box-shadow .2s ease;
}
.in-topbar.is-scrolled { box-shadow: 0 6px 20px rgba(43, 43, 44, .07); }

.in-topbar-row {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 72px;
}
.in-topbar-row:before,
.in-topbar-row:after { display: none; } /* Bootstrap clearfix pseudo-elements break flex */

.in-logo { display: block; flex: none; line-height: 0; }
.in-logo img { width: auto; height: 28px; }

/* Main menu */
.in-nav { flex: 1 1 auto; min-width: 0; }
.in-nav .nav { margin: 0; padding: 0; }
.in-nav .nav > li { float: none; }

.in-nav-primary { display: flex; flex-wrap: nowrap; gap: 2px; }
.in-nav .nav > li > a,
.in-account > li > a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border-radius: var(--in-radius);
    color: var(--in-charcoal-2);
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
}
.in-nav .nav > li > a:hover,
.in-nav .nav > li > a:focus,
.in-nav .nav > li.open > a,
.in-account > li > a:hover,
.in-account > li > a:focus,
.in-account > li.open > a {
    background: var(--in-subtle);
    color: var(--in-text-strong);
    text-decoration: none;
}
.in-nav .nav > li.active > a,
.in-nav .nav > li.active > a:hover,
.in-nav .nav > li.active > a:focus {
    background: var(--in-lime-soft);
    color: var(--in-green-text);
}
.in-nav-icon { width: 16px; text-align: center; font-size: 14px; opacity: .85; }
.in-caret { font-size: 10px; opacity: .6; transition: transform .15s ease; }
.open > a > .in-caret { transform: rotate(180deg); }
.in-nav .badge,
.in-account .badge { background: var(--in-action); color: #fff; }

.in-nav .dropdown-menu,
.in-account .dropdown-menu,
.in-actions .dropdown-menu { margin-top: 8px; min-width: 220px; }
.in-nav .nav .nav-divider,
.in-account .nav-divider { height: 1px; margin: 6px 4px; overflow: hidden; background: var(--in-border); padding: 0; }

/* Right-hand actions */
.in-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: none;
}
.in-actions .btn { min-height: 40px; }
.in-actions .dropdown { position: relative; }

.in-iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--in-card);
    border: 1px solid var(--in-border);
    border-radius: var(--in-radius);
    color: var(--in-charcoal-2);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.in-iconbtn:hover,
.in-iconbtn:focus,
.open > .in-iconbtn {
    background: var(--in-subtle);
    color: var(--in-text-strong);
    text-decoration: none;
}
.in-dot-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--in-card);
    border-radius: 9px;
    background: #e8590c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

/* Notifications dropdown */
.in-alerts-menu { width: 340px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.in-alerts-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--in-border);
    color: var(--in-text-strong);
    font-weight: 600;
}
.in-alerts-list { max-height: 360px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; }
.in-alerts-list .in-alert {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: var(--in-radius-sm);
    color: var(--in-text);
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
}
.in-alerts-list .in-alert:hover { background: var(--in-subtle); text-decoration: none; color: var(--in-text-strong); }
.in-alerts-list .in-alert i { margin-top: 3px; }
.in-alert-danger i  { color: var(--in-crit); }
.in-alert-warning i { color: #d97f06; }
.in-alert-info i    { color: var(--in-info); }
.in-alert-success i { color: var(--in-green-text); }
.in-alerts-none { padding: 14px 10px; color: var(--in-muted); font-size: 14px; text-align: center; }

/* Account menu (avatar + name) */
.in-account { display: flex; margin: 0; }
.in-account > li { float: none; }
.in-account > li > a {
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--in-border);
    border-radius: 999px;
}
.in-account .in-nav-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.in-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--in-lime);
    color: var(--in-charcoal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* Admin "return to admin" */
.in-actions .btn-logged-in-admin { color: var(--in-warn); border-color: #f3cf7a; background: var(--in-warn-soft); }

/* Visibility helpers */
.in-menu-toggle { display: none; }
.in-menu-toggle .in-when-open { display: none; }
.in-menu-toggle:not(.collapsed) .in-when-open { display: inline; }
.in-menu-toggle:not(.collapsed) .in-when-closed { display: none; }

@media (min-width: 1200px) {
    .in-nav.collapse { display: block !important; height: auto !important; overflow: visible !important; }
    .in-phone-only { display: none !important; }
}

@media (min-width: 1200px) and (max-width: 1279px) {
    .in-topbar-row { gap: 12px; }
    .in-logo img { height: 24px; }
    .in-nav-primary > li > a { padding: 9px 8px; font-size: 14px; gap: 5px; }
    .in-account .in-nav-label { display: none; }
    .in-account > li > a { padding-right: 8px; }
    .in-actions { gap: 6px; }
}

/* Phones, tablets & small laptops: logo · bell/cart · menu button, menu opens below */
@media (max-width: 1199px) {
    .in-topbar-row { flex-wrap: wrap; gap: 10px; min-height: 64px; }
    .in-logo img { height: 24px; }
    .in-desktop-only { display: none !important; }
    .in-menu-toggle { display: inline-flex; }

    .in-nav {
        order: 3;
        flex: 1 0 100%;
        margin: 0 -15px;
        padding: 0 15px;
        border-top: 1px solid var(--in-border);
    }
    .in-nav.in { max-height: calc(100vh - 64px); overflow-y: auto; }
    .in-nav-primary { display: block; padding: 8px 0 !important; }
    .in-nav .nav > li > a { padding: 12px 10px; font-size: 16px; }
    .in-nav-secondary { padding: 8px 0 12px !important; border-top: 1px solid var(--in-border); }

    .in-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin: 2px 0 6px 18px;
        padding: 0 0 0 10px;
        background: transparent;
        border: 0;
        border-left: 2px solid var(--in-border);
        border-radius: 0;
        box-shadow: none;
    }
    .in-nav .dropdown-menu > li > a { padding: 10px 12px; white-space: normal; font-size: 15px; }
    .in-nav .dropdown-menu > .active > a { background: transparent; color: var(--in-green-text); font-weight: 600; }

    body.in-menu-open { overflow: hidden; }
}

/* Page header */
.in-pageheader .in-eyebrow[hidden] { display: none; }

/* Sidebar: collapsible behind "Opciones" on phones */
.in-sidebar-toggle { display: none; }
@media (min-width: 992px) {
    .in-sidebar-collapse.collapse { display: block !important; height: auto !important; }
}
@media (max-width: 991px) {
    .in-sidebar-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        text-align: left;
    }
    .in-sidebar-toggle .fa-sliders-h { color: var(--in-green-text); margin-right: 6px; }
    .in-sidebar-toggle .in-caret { margin-left: auto; }
    .in-sidebar-toggle:not(.collapsed) .in-caret { transform: rotate(180deg); }
    .sidebar-secondary { margin-top: 8px; }
}

/* Footer */
.in-footer {
    margin-top: 16px;
    padding: 28px 0 32px;
    background: var(--in-card);
    border-top: 1px solid var(--in-border);
    color: var(--in-muted);
    font-size: 14px;
}
.in-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}
.in-footer-row:before,
.in-footer-row:after { display: none; }
.in-footer-logo { display: inline-block; line-height: 0; }
.in-footer-logo img { width: auto; height: 20px; }
.in-footer-brand p { margin: 8px 0 0; font-size: 13px; }
.in-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-left: auto;
}
.in-footer-links a { color: var(--in-muted); font-weight: 500; }
.in-footer-links a:hover { color: var(--in-text-strong); }
.in-footer .back-to-top { float: none; flex: none; }
@media (max-width: 767px) {
    .in-footer-links { margin-left: 0; width: 100%; }
    .in-footer .back-to-top { position: absolute; right: 15px; }
    .in-footer-row { position: relative; }
}

/* Homepage banner (full restyle in Phase 6) */
section#home-banner {
    background: radial-gradient(circle at top right, rgba(140, 198, 63, .28), transparent 30rem), var(--in-charcoal);
}
