html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

:root,
.theme-default {
    --client-primary: #003b7a;
    --client-primary-dark: #002f63;
    --client-primary-soft: #eef5ff;
    --client-primary-border: #bfd8ff;
    --client-accent: #003b7a;
    --client-accent-text: #ffffff;
}

.theme-uniqlo {
    --client-primary: #e60012;
    --client-primary-dark: #b8000e;
    --client-primary-soft: #fff0f1;
    --client-primary-border: #ffc7cc;
    --client-accent: #e60012;
    --client-accent-text: #ffffff;
}

.theme-gu {
    --client-primary: #1e2f97;
    --client-primary-dark: #15236f;
    --client-primary-soft: #fff9d6;
    --client-primary-border: #ffeb66;
    --client-accent: #ffeb00;
    --client-accent-text: #1e2f97;
}

.theme-default {
    --client-primary-rgb: 0, 59, 122;
}

.theme-uniqlo {
    --client-primary-rgb: 230, 0, 18;
}

.theme-gu {
    --client-primary-rgb: 30, 47, 151;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #198754;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.grid-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 16px 0;
}

.data-grid-container {
    max-height: 520px;
    overflow: auto;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: white;
}

.data-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 900px;
}

    .data-grid th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--client-primary-soft);
        color: var(--client-primary);
        border-bottom: 1px solid var(--client-primary-border);
        text-align: left;
        padding: 8px;
        font-weight: 600;
        white-space: nowrap;
    }

    .data-grid td {
        border-bottom: 1px solid #eaeef2;
        border-right: 1px solid #eaeef2;
        padding: 0;
        white-space: nowrap;
    }

        .data-grid td.locked-cell {
            background: #f6f8fa;
            color: #57606a;
            padding: 7px 8px;
        }

    .data-grid input,
    .data-grid select {
        width: 100%;
        min-width: 90px;
        border: none;
        padding: 7px 8px;
        background: transparent;
        font: inherit;
        box-sizing: border-box;
    }

        .data-grid input:focus,
        .data-grid select:focus {
            outline: 2px solid var(--client-primary);
            outline-offset: -2px;
            background: #ffffff;
        }

    .data-grid tr:hover td {
        background: var(--client-primary-soft);
    }

        .data-grid tr:hover td.locked-cell {
            background: var(--client-primary-soft);
        }

.data-grid-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.page-header {
    margin-bottom: 20px;
    color: var(--client-primary);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--client-primary);
}

.context-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.context-pill {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
}

.app-card {
    background: #ffffff;
    border: 1px solid var(--client-primary);
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(31, 35, 40, 0.12);
}

    .app-card h2 {
        margin-top: 0;
        margin-bottom: 14px;
        font-size: 22px;
        color: var(--client-primary);
    }

.form-grid {
    display: grid;
    grid-template-columns: 160px minmax(220px, 360px);
    gap: 10px 14px;
    align-items: center;
}

    .form-grid label {
        font-weight: 600;
    }

    .form-grid input,
    .form-grid select {
        width: 100%;
        padding: 7px 9px;
        border: 1px solid #d0d7de;
        border-radius: 6px;
        box-sizing: border-box;
    }

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: var(--client-primary);
    color: #ffffff;
    border-color: var(--client-primary);
}

    .btn-primary:hover {
        background: var(--client-primary-dark);
        border-color: var(--client-primary-dark);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.btn-secondary {
    background: var(--client-primary-soft);
    color: var(--client-primary);
    border-color: var(--client-primary-border);
}

    .btn-secondary:hover {
        background: var(--client-primary-border);
        color: var(--client-primary-dark);
        border-color: var(--client-primary-border);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.btn-danger {
    background: #fff5f5;
    color: #cf222e;
    border-color: #ffcecb;
}

.status-success {
    color: #1a7f37;
    background: #dafbe1;
    border: 1px solid #aceebb;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.status-warning {
    color: #9a6700;
    background: #fff8c5;
    border: 1px solid #f0d98c;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.page-footer-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.back-link {
    display: inline-block;
    margin-top: 10px;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

    .card-header-row h2 {
        margin: 0;
    }

.status-error {
    color: #cf222e;
    background: #ffebe9;
    border: 1px solid #ffcecb;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: 16px;
}

.dashboard-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border: 1px solid var(--client-primary-border);
    border-radius: 20px;
    padding: 18px;
    transition: all 0.15s ease;
}

    .dashboard-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 4px 12px rgba(31, 35, 40, 0.14);
        border-color: var(--client-primary);
    }

.dashboard-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--client-primary);
}

.dashboard-card-description {
    font-size: 13px;
    color: #57606a;
    line-height: 1.4;
}

.app-navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar-logo {
    height: 38px;
    width: auto;
    display: block;
}

.navbar,
.app-header,
.top-nav {
    border-bottom: 1px solid var(--client-primary-border);
}

.theme-uniqlo .navbar,
.theme-uniqlo .app-header,
.theme-uniqlo .top-nav {
    border-top: 4px solid var(--client-primary);
}

.theme-gu .navbar,
.theme-gu .app-header,
.theme-gu .top-nav {
    border-top: 4px solid var(--client-primary);
}

.nav-user-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-user-name {
    font-weight: 600;
    color: #1f2937;
    margin-right: 4px;
}

.nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-action-secondary {
    color: var(--client-primary);
    background: var(--client-primary-soft);
    border: 1px solid var(--client-primary-border);
}

    .nav-action-secondary:hover {
        color: var(--client-primary-dark);
        background: var(--client-primary-border);
        text-decoration: none;
    }

.nav-action-primary {
    color: #ffffff;
    background: var(--client-primary);
    border: 1px solid var(--client-primary);
}

    .nav-action-primary:hover {
        color: #ffffff;
        background: var(--client-primary-dark);
        border-color: var(--client-primary-dark);
        text-decoration: none;
    }

.login-shell {
    max-width: 460px;
    margin: 60px auto;
    padding: 24px;
}

.login-card {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(31, 35, 40, 0.08);
}

    .login-card h1 {
        margin-top: 0;
        margin-bottom: 6px;
        font-size: 28px;
        font-weight: 700;
    }

.login-subtitle {
    color: #57606a;
    margin-bottom: 24px;
}

.login-form-grid {
    grid-template-columns: 110px 1fr;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
}

    .loading-overlay.is-visible {
        display: flex;
    }

.loading-card {
    width: 340px;
    max-width: calc(100vw - 40px);
    padding: 28px 24px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d0d7de;
    box-shadow: 0 12px 32px rgba(31, 35, 40, 0.22);
    text-align: center;
}

.loading-logo {
    width: 110px;
    height: auto;
    margin-bottom: 28px;
    /*animation: tms-logo-spin 3s linear infinite;*/
    transform-origin: center center;
}

.loading-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.loading-message {
    margin: 0;
    color: #57606a;
    font-size: 14px;
}

@keyframes tms-logo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.filter-panel {
    margin: 1rem 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .filter-field input,
    .filter-field select {
        width: 100%;
    }

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

.data-grid th a {
    color: inherit;
    text-decoration: none;
}

    .data-grid th a:hover {
        text-decoration: underline;
    }

@media (max-width: 900px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }
}

.time-picker {
    cursor: pointer;
    background-color: #fff;
}

body {
    margin-bottom: 0;
    background: #f7f8fb;
    color: #111827;
}

.app-frame {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    width: 260px;
    flex: 0 0 260px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 22px 16px;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.04);
}

.client-logo-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 12px;
    border-radius: 16px;
    background: var(--client-primary-soft);
    color: var(--client-primary);
    font-weight: 800;
}

    .client-logo-panel img {
        width: 58px;
        height: 58px;
        object-fit: contain;
        border-radius: 8px;
    }

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-nav-link {
    width: 100%;
    border: 0;
    background: transparent;
    color: #111827;
    text-align: left;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 700;
}

    .side-nav-link:hover,
    .side-nav-link:focus {
        background: var(--client-primary-soft);
        color: var(--client-primary);
    }

.side-nav-toggle::after {
    content: "⌄";
    float: right;
}

.side-nav-submenu {
    padding: 4px 0 8px 12px;
}

    .side-nav-submenu a {
        display: block;
        padding: 8px 12px;
        margin: 2px 0;
        color: #4b5563;
        text-decoration: none;
        border-radius: 10px;
        font-size: 14px;
    }

        .side-nav-submenu a:hover {
            background: var(--client-primary-soft);
            color: var(--client-primary);
        }

    .side-nav-submenu span {
        display: block;
        color: #9ca3af;
        font-size: 12px;
    }

.app-main {
    flex: 1;
    min-width: 0;
}

.app-topbar {
    min-height: 72px;
    background: linear-gradient( 90deg, rgba(var(--client-primary-rgb), .88), rgba(var(--client-primary-rgb), .78) );
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.theme-gu .app-topbar {
    color: #ffffff;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

    .topbar-brand:hover {
        color: #ffffff;
    }

    .topbar-brand img {
        height: 38px;
        width: auto;
        display: block;
    }

    .topbar-brand img {
        height: 38px;
        width: auto;
        display: block;
        background: rgba(255,255,255,.92);
        padding: 6px 10px;
        border-radius: 10px;
    }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-content {
    padding: 28px;
}

.dashboard-shell {
    max-width: 1380px;
    margin: 0 auto;
}

.dashboard-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

    .dashboard-title-row h1 {
        margin: 0;
        font-size: 34px;
        font-weight: 800;
    }

    .dashboard-title-row p {
        margin: 6px 0 0 0;
        color: #6b7280;
    }

.client-switcher-card {
    display: flex;
    align-items: end;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

    .client-switcher-card label {
        display: block;
        font-weight: 700;
        font-size: 13px;
        color: #4b5563;
    }

    .client-switcher-card select {
        height: 38px;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        padding: 0 10px;
    }

.dashboard-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.dashboard-tile {
    min-height: 142px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 16px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: 0.16s ease;
}

    .dashboard-tile:hover {
        transform: translateY(-4px);
        border-color: var(--client-primary);
        color: inherit;
    }

    .dashboard-tile h2 {
        font-size: 18px;
        margin: 0 0 8px 0;
        font-weight: 800;
    }

    .dashboard-tile p {
        color: #6b7280;
        margin: 0;
        font-size: 14px;
    }

.dashboard-tile-disabled {
    opacity: 0.72;
}

.tile-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 999px;
    background: var(--client-primary);
    color: var(--client-accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.theme-gu .tile-icon {
    background: var(--client-primary);
    color: #ffffff;
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: stretch;
}

    .dashboard-content-grid > .app-card {
        height: 100%;
    }

.system-status-card,
.activity-card {
    display: flex;
    flex-direction: column;
}

.app-card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

    .app-card h2 {
        color: #111827;
        font-weight: 800;
    }

.card-subtitle {
    margin: -6px 0 0 0;
    color: #6b7280;
    font-size: 14px;
}

.activity-total {
    text-align: right;
    background: var(--client-primary-soft);
    color: var(--client-primary);
    border: 1px solid var(--client-primary-border);
    border-radius: 16px;
    padding: 10px 14px;
}

    .activity-total span {
        display: block;
        font-size: 28px;
        font-weight: 900;
        line-height: 1;
    }

    .activity-total small {
        font-size: 12px;
    }

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

    .activity-table th {
        color: #6b7280;
        font-size: 13px;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 8px;
    }

    .activity-table td {
        border-bottom: 1px solid #f1f5f9;
        padding: 12px 8px;
    }

.system-status-card {
    min-height: 240px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .status-row span {
        color: #6b7280;
    }

    .status-row strong {
        text-align: right;
    }

.empty-state {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    border-radius: 14px;
    padding: 18px;
}

.dashboard-section-card {
    margin-top: 18px;
}

.link-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.link-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: inherit;
    text-decoration: none;
}

    .link-card:hover {
        border-color: var(--client-primary);
        color: inherit;
        background: var(--client-primary-soft);
    }

    .link-card span {
        color: #6b7280;
        font-size: 13px;
    }

.link-card-disabled {
    opacity: 0.72;
    pointer-events: none;
}

.theme-gu .nav-action-secondary {
    color: var(--client-accent);
    background: transparent;
    border-color: var(--client-accent);
}

.theme-gu .nav-action-primary {
    color: var(--client-primary);
    background: var(--client-accent);
    border-color: var(--client-accent);
}

@media (max-width: 1100px) {
    .app-frame {
        display: block;
    }

    .app-sidebar {
        width: 100%;
        flex-basis: auto;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .dashboard-tile-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .app-topbar,
    .dashboard-title-row,
    .topbar-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-tile-grid {
        grid-template-columns: 1fr;
    }

    .app-content {
        padding: 18px;
    }
}

.sidebar-toggle-btn {
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.14);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 18px;
    margin-right: 14px;
}

body.sidebar-collapsed .app-sidebar {
    width: 0;
    flex-basis: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    border-right: 0;
}

.app-sidebar {
    transition: width .2s ease, flex-basis .2s ease, padding .2s ease;
}

.dashboard-scroll-story {
    margin-top: 48px;
}

.dashboard-scroll-story {
    margin-top: 36px;
}

.scroll-story-panel {
    min-height: auto;
    display: block;
    margin-bottom: 24px;
}

    .scroll-story-panel .dashboard-section-card {
        width: 100%;
        margin-top: 0;
    }

    .scroll-story-panel:last-child {
        margin-bottom: 0;
    }

    .scroll-story-panel .dashboard-section-card {
        width: 100%;
        opacity: 1;
        transform: translateY(0);
        transition: opacity .55s ease, transform .55s ease;
    }

.js .scroll-story-panel .dashboard-section-card {
    opacity: 0;
    transform: translateY(48px);
}

.js .scroll-story-panel.is-visible .dashboard-section-card {
    opacity: 1;
    transform: translateY(0);
}

#configurationScreens,
#applications {
    scroll-margin-top: 96px;
}

.logscout-search-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

    .logscout-search-form .form-group {
        min-width: 360px;
        flex: 1;
    }

    .logscout-search-form label {
        font-weight: 800;
        margin-bottom: 6px;
    }

.table-scroll {
    overflow: auto;
    max-height: 520px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.logscout-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

    .logscout-table th {
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 2;
        color: #6b7280;
        font-size: 13px;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px 12px;
        text-align: left;
        white-space: nowrap;
    }

    .logscout-table td {
        border-bottom: 1px solid #f1f5f9;
        padding: 10px 12px;
        vertical-align: top;
        white-space: nowrap;
        max-width: 360px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.logscout-result-row {
    cursor: pointer;
}

    .logscout-result-row:hover,
    .logscout-result-row.is-selected {
        background: var(--client-primary-soft);
    }

.logscout-log-panel {
    min-height: 260px;
    max-height: 520px;
    overflow: auto;
    background: #111827;
    color: #f9fafb;
    border-radius: 16px;
    padding: 16px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    white-space: pre-wrap;
}


/* =========================================================
   Getting Started
   ========================================================= */

.getting-started-page {
    padding-bottom: 40px;
}

.getting-started-header {
    margin-bottom: 22px;
}

.getting-started-eyebrow,
.section-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--client-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.getting-started-hero {
    overflow: hidden;
    padding: 0;
}

.getting-started-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 36px;
    padding: 36px;
    background: radial-gradient( circle at top right, rgba(215, 25, 32, 0.08), transparent 35% ), #ffffff;
}

.getting-started-hero h2 {
    max-width: 700px;
    margin: 0 0 14px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
}

.getting-started-hero-content > div:first-child > p {
    max-width: 720px;
    margin: 0;
    color: #5f6878;
    font-size: 16px;
    line-height: 1.75;
}

.getting-started-principles {
    display: grid;
    gap: 12px;
}

.principle-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.principle-number {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--client-primary);
    color: #ffffff;
    font-weight: 800;
}

.principle-card strong {
    display: block;
    margin-bottom: 2px;
}

.principle-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.save-refresh-guide {
    margin-top: 24px;
    padding: 28px;
}

.guide-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

    .guide-section-heading h2 {
        margin: 0;
        font-size: 26px;
    }

    .guide-section-heading p {
        margin: 7px 0 0;
        color: #6b7280;
    }

.carousel-count {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}

.save-refresh-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

.workflow-step {
    min-height: 170px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
}

.workflow-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--client-primary);
    color: #ffffff;
    font-weight: 800;
}

.workflow-step h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.workflow-step p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
}

.workflow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--client-primary);
    font-size: 22px;
    font-weight: 800;
}

.getting-started-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #f0d18a;
    border-radius: 14px;
    background: #fff9e8;
    color: #6a4b00;
}

    .getting-started-callout strong {
        flex: 0 0 auto;
    }

/* =========================================================
   Walkthrough Sections
   ========================================================= */

.walkthrough-section {
    margin-top: 34px;
}

.walkthrough-carousel {
    padding-bottom: 52px;
}

.walkthrough-card {
    display: grid;
    /*grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.35fr);*/
    grid-template-columns: 300px 2fr;
    min-height: 510px;
    overflow: hidden;
    padding: 0;
}

.walkthrough-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 42px;
}

.walkthrough-slide-number {
    margin-bottom: 18px;
    color: var(--client-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.walkthrough-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.walkthrough-copy h3 {
    margin: 0 0 14px;
    font-size: clamp(27px, 3vw, 38px);
}

.walkthrough-title-row h3 {
    margin-bottom: 0;
}

.walkthrough-description {
    margin: 0;
    color: #5f6878;
    font-size: 16px;
    line-height: 1.7;
}

.walkthrough-example {
    width: 100%;
    margin-top: 24px;
    padding: 18px;
    border-left: 4px solid var(--client-primary);
    border-radius: 0 14px 14px 0;
    background: #f8fafc;
}

    .walkthrough-example span {
        display: block;
        margin-bottom: 5px;
        color: #374151;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .walkthrough-example p {
        margin: 0;
        color: #4b5563;
        line-height: 1.6;
    }

.walkthrough-open-button {
    margin-top: auto;
}

.walkthrough-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

/* =========================================================
   Walkthrough Images and Videos
   ========================================================= */

.walkthrough-media-panel {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 520px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    border-left: 1px solid #e5e7eb;
    background: #eef1f5;
}

/* Shared presentation styles */
.walkthrough-video,
.walkthrough-image {
    display: block;
    max-width: 100%;
    border: 1px solid #d8dde6;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

/* Configuration walkthrough videos */
.walkthrough-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

/* Application walkthrough screenshots */
.walkthrough-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
}

.walkthrough-media-placeholder {
    display: none;
    width: 100%;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    text-align: center;
}

    .walkthrough-media-placeholder span {
        margin-bottom: 7px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .walkthrough-media-placeholder strong {
        font-size: 18px;
    }

.walkthrough-media-panel.image-unavailable .walkthrough-image {
    display: none;
}

.walkthrough-media-panel.image-unavailable
.walkthrough-media-placeholder {
    display: flex;
}

.walkthrough-video-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.walkthrough-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    background: #111827;
}

.walkthrough-video-error {
    position: absolute;
    inset: 20px;
    z-index: 3;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #991b1b;
    text-align: center;
}

    .walkthrough-video-error:not([hidden]) {
        display: flex;
    }

    .walkthrough-video-error span {
        color: #6b7280;
        font-size: 14px;
    }

/* =========================================================
   Carousel Controls
   ========================================================= */

.walkthrough-carousel .carousel-control-prev,
.walkthrough-carousel .carousel-control-next {
    top: auto;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--client-primary);
    opacity: 1;
}

.walkthrough-carousel .carousel-control-prev {
    left: calc(50% - 64px);
}

.walkthrough-carousel .carousel-control-next {
    right: calc(50% - 64px);
}

    .walkthrough-carousel .carousel-control-prev:hover,
    .walkthrough-carousel .carousel-control-next:hover {
        opacity: 0.88;
    }

    .walkthrough-carousel .carousel-control-prev:focus,
    .walkthrough-carousel .carousel-control-next:focus {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.18);
    }

.walkthrough-carousel .carousel-control-prev-icon,
.walkthrough-carousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

.walkthrough-carousel .carousel-indicators {
    bottom: 9px;
    gap: 5px;
    margin-bottom: 0;
}

    .walkthrough-carousel .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0;
        border: 0;
        border-radius: 50%;
        background: #aeb6c3;
    }

    .walkthrough-carousel .carousel-indicators .active {
        background: var(--client-primary);
    }

/* =========================================================
   Footer Card
   ========================================================= */

.getting-started-footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
    padding: 28px;
}

    .getting-started-footer-card h2 {
        margin: 0 0 6px;
    }

    .getting-started-footer-card p {
        margin: 0;
        color: #6b7280;
    }

/* =========================================================
   Responsive Layout
   ========================================================= */

@media (max-width: 1100px) {
    .getting-started-hero-content,
    .walkthrough-card {
        grid-template-columns: 1fr;
    }

    .walkthrough-media-panel {
        min-height: 390px;
        border-top: 1px solid #e5e7eb;
        border-left: 0;
    }

    .save-refresh-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-connector {
        display: none;
    }
}

@media (max-width: 700px) {
    .getting-started-hero-content,
    .walkthrough-copy {
        padding: 24px;
    }

    .save-refresh-guide {
        padding: 20px;
    }

    .save-refresh-flow {
        grid-template-columns: 1fr;
    }

    .workflow-step {
        min-height: 0;
    }

    .guide-section-heading,
    .getting-started-footer-card,
    .getting-started-callout {
        align-items: flex-start;
        flex-direction: column;
    }

    .walkthrough-card {
        min-height: auto;
    }

    .walkthrough-media-panel {
        min-height: 280px;
        padding: 16px;
    }

    .walkthrough-video,
    .walkthrough-image {
        max-height: 340px;
    }

    .walkthrough-media-placeholder {
        min-height: 260px;
    }

    .walkthrough-carousel .carousel-control-prev {
        left: calc(50% - 58px);
    }

    .walkthrough-carousel .carousel-control-next {
        right: calc(50% - 58px);
    }
}


/* =========================================================
   TMS target environment banner
   ========================================================= */

.environment-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 46px;
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid transparent;
    font-size: 0.9rem;
    position: relative;
    z-index: 20;
}

.environment-banner-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

    .environment-banner-status strong {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    .environment-banner-status span {
        font-weight: 500;
    }

.environment-banner-separator {
    margin: 0 0.35rem;
}

.environment-banner.qa {
    background: #e8f4ff;
    color: #164f7a;
    border-color: #b9dcf4;
}

.environment-banner.production {
    background: #8b0000;
    color: #ffffff;
    border-color: #5d0000;
}

.environment-banner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.35rem 0.8rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .environment-banner-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: inherit;
    }

.environment-banner.qa .environment-banner-link:hover {
    background: rgba(22, 79, 122, 0.1);
}

.environment-warning {
    padding: 0.7rem 1.25rem;
    background: #fff3cd;
    color: #664d03;
    border-bottom: 1px solid #ffecb5;
    text-align: center;
    font-size: 0.9rem;
}

.side-nav-divider {
    height: 1px;
    margin: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
    .environment-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.65rem 1rem;
    }

    .environment-banner-status {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .environment-banner-link {
        width: 100%;
    }
}
