/* ===============================
   OWO Cyber - Enterprise operations UI (Light Only)
   =============================== */

/*
   DESIGN TOKENS

   One fixed palette for every page. Solid colours only: no gradient fills, no
   neon, nothing "hacker themed". The system reads as a serious enterprise
   operations platform.

   navy   chrome, headings, main text
   slate  secondary text on navy, sub-headings
   accent primary actions, links, active state
   green  successful / approved
   amber  pending / warning
   red    failed / rejected / danger
*/
:root {
    /* Chrome */
    --navy: #0f172a;
    --navy-deep: #0b1220;
    --slate: #334155;

    /* Actions */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --info: #0ea5e9;

    /* Surfaces */
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-subtle: #f1f5f9;

    /* Text */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-navy: #ffffff;
    --text-on-navy-muted: #cbd5e1;

    /* Lines */
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    /* Status */
    --success: #16a34a;
    --success-soft: #dcfce7;
    --success-ink: #166534;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --warning-ink: #92400e;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --danger-ink: #991b1b;
    --info: #0ea5e9;
    --info-soft: #dbeafe;
    --info-ink: #1e40af;
    --neutral-soft: #e2e8f0;
    --neutral-ink: #475569;

    /* Minimal, restrained elevation */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);

    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

/* ===============================
   BRAND LOGO
   =============================== */

.brand-logo {
    display: inline-block;
    height: auto;
    object-fit: contain;
    /* Keeps a very wide logo from stretching a header on small screens. */
    max-width: min(100%, 260px);
}

.brand-logo-link {
    line-height: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-fallback {
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/*
   The logo is a photograph, so on navy chrome it needs a light plate to read as
   a logo rather than a bright rectangle. A modest radius keeps it in line with
   the rest of the cards.
*/
.navbar .brand-logo,
.sidebar .brand-logo {
    background-color: #ffffff;
    border-radius: 0.375rem;
    padding: 0.2rem 0.3rem;
}

/* The wordmark fallback sits directly on navy, so it must be light. */
.navbar .brand-logo-fallback,
.sidebar .brand-logo-fallback {
    color: #ffffff;
}

/* Auth pages use their own stylesheet; keep the logo centred there too. */
.auth-logo .brand-logo-link {
    justify-content: center;
}

/* ===============================
   FINANCE SUMMARY CARDS
   =============================== */

.owo-stat-card {
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.owo-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Thin colour rail so each figure is identifiable at a glance. */
.owo-stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--border);
}

.owo-stat-card.owo-stat-credit::before   { background: var(--success); }
.owo-stat-card.owo-stat-debit::before    { background: var(--danger); }
.owo-stat-card.owo-stat-balance::before  { background: var(--primary); }
.owo-stat-card.owo-stat-negative::before { background: var(--danger); }

.owo-stat-icon {
    font-size: 1.35rem;
    line-height: 1;
    opacity: .85;
}

/* Monetary figures line up and never wrap mid-number. */
.owo-stat-card .h4 {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* ===============================
   BASE
   =============================== */

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* ===============================
   NAVBAR
   =============================== */

/*
   Deep navy chrome across the public site and the authenticated app, so the
   header reads the same everywhere. Solid colour only: no gradient fills.
*/
.navbar {
    background-color: var(--navy);
    border-bottom: 1px solid var(--navy-deep);
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-text {
    color: #ffffff;
}

.navbar .nav-link {
    opacity: 0.78;
    transition: opacity 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: #ffffff;
    opacity: 1;
}

.navbar .nav-link.active {
    font-weight: 600;
}

/* Buttons sit on navy, so the default outline needs a light treatment. */
.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus {
    color: var(--navy);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Toggler and its bars are invisible against navy otherwise. */
.navbar-dark-toggler,
.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ===============================================================
   PORTAL SHELL
   ===============================================================

   The frame every signed-in page sits in:

     .owo-layout   flex row filling the viewport
     .owo-sidebar  fixed-width navy column, scrolls only if it overflows
     .owo-column   the rest, a flex column
     .owo-topbar   white, pinned at the top of the column
     .owo-content  the one scrollable region

   The body itself is not scrollable while .owo-shell is on <body>, so there is
   exactly one scrollbar in the app instead of a page one plus a content one.
   Scoped to .owo-shell: the public, auth and error pages keep normal document
   scrolling.
   */
body.owo-shell {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.owo-layout {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: 100%;
}

/* min-width:0 lets the column shrink instead of forcing a horizontal
   scrollbar when a table inside the content area is wide. */
.owo-column {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
}

/* --- Sidebar --------------------------------------------- */
.owo-sidebar {
    flex: 0 0 250px;
    width: 250px;
    background-color: var(--navy);
    color: var(--text-on-navy);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Only this element scrolls, and only when the menu is taller than the
   viewport. The page content never moves the sidebar. */
.owo-sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.owo-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.owo-sidebar-brand a {
    min-width: 0;
}

.owo-sidebar-brand-text {
    color: var(--text-on-navy);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin-left: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owo-sidebar-brand .brand-logo {
    background-color: transparent;
    flex: 0 0 auto;
}

.owo-sidebar-close {
    background: none;
    border: 0;
    color: var(--text-on-navy-muted);
    font-size: 1.125rem;
    line-height: 1;
    padding: 0.25rem;
}

.owo-sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem 0.5rem 1rem;
}

.owo-nav-group + .owo-nav-group {
    margin-top: 1.25rem;
}

.owo-nav-group-label {
    color: #94a3b8;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.375rem 0.75rem;
}

.owo-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.owo-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: 2px;
    border-radius: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.owo-nav-link i {
    font-size: 1.0625rem;
    width: 1.25rem;
    text-align: center;
    flex: 0 0 auto;
}

.owo-nav-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owo-nav-link:hover,
.owo-nav-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.07);
    color: var(--text-on-navy);
}

/* Active item: blue fill, white text, white icon. */
.owo-nav-link.is-active {
    background-color: var(--primary);
    color: var(--text-on-navy);
    font-weight: 600;
}

.owo-nav-link.is-active i {
    color: var(--text-on-navy);
}

.owo-nav-empty {
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 0.75rem;
}

.owo-sidebar-foot {
    flex: 0 0 auto;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* The logout control is a submit button, so it needs the button reset too. */
.owo-nav-logout {
    width: 100%;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.owo-nav-logout:hover {
    background-color: rgba(255, 255, 255, 0.07);
    color: var(--text-on-navy);
}

/* --- Top bar ----------------------------------------------- */
.owo-topbar {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 64px;
    padding: 0 1.25rem;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.owo-topbar-left,
.owo-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.owo-topbar-heading {
    min-width: 0;
}

.owo-topbar-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owo-breadcrumb {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.owo-topbar-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    color: var(--text-main);
    font-size: 1.125rem;
    text-decoration: none;
}

.owo-topbar-icon:hover {
    background-color: var(--bg);
}

.owo-topbar-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: var(--danger);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 18px;
}

.owo-user-chip {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
}

.owo-user-chip:hover,
.owo-user-chip:focus-visible {
    background-color: var(--bg);
    border-color: var(--border);
}

.owo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text-on-navy);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.owo-user-meta {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.owo-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

.owo-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.owo-user-caret {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.owo-drawer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 1.375rem;
    line-height: 1;
}

/* --- Content ----------------------------------------------- */
.owo-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 1.5rem 1.25rem 3rem;
}

.owo-content:focus {
    outline: none;
}

/* --- Mobile drawer ----------------------------------------- */
/*
   The sidebar leaves the flow entirely and slides over the content, so a
   phone never permanently loses half its width to navigation.
*/
.owo-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background-color: rgba(15, 23, 42, 0.5);
    border: 0;
}

.owo-sidebar-scrim[hidden] {
    display: none;
}

}

/* ===============================
   CARDS
   =============================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/*
   Dashboard figures.

   The old dashboard filled a card with a saturated Bootstrap background
   (bg-primary, bg-warning, bg-success) and centred a number in it. Eight of
   those in a row read as a slide deck, not as an operations screen, and a
   solid amber card with dark text is close to unreadable. These are flat white
   cards with a slate label, a navy value, and a muted footnote, so a wall of
   them still reads as a table of numbers.
*/
.owo-metric {
    border-left: 3px solid var(--primary);
}

.owo-metric--alert {
    border-left-color: var(--danger);
}

.owo-metric .card-body {
    padding: 1.125rem 1.25rem;
}

.owo-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.owo-metric-value {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere;
}

.owo-metric-foot {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Header action cluster. Wraps rather than overflowing on a phone. */
.owo-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.owo-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    background-color: var(--warning-soft);
    color: var(--warning-ink);
    font-size: 0.6875rem;
    font-weight: 700;
}

/* "Needs attention" list on the admin dashboard. */
.owo-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.owo-alert:hover {
    color: var(--text-main);
}

.owo-alert i {
    font-size: 1.125rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.owo-alert strong {
    display: block;
    font-weight: 600;
}

.owo-alert-detail {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.owo-alert--warning i { color: var(--warning); }
.owo-alert--danger i { color: var(--danger); }
.owo-alert--info i { color: var(--info); }
.owo-alert--success i { color: var(--success); }

/* ===============================
   CHARTS
   =============================== */

/*
   Charts are SVG drawn by public/js/owo-charts.js. Everything the chart needs
   is already flat: the renderer reads the tokens above through
   getComputedStyle, so no fill here is a gradient and none may become one.
*/
.owo-chart {
    position: relative;
    width: 100%;
}

.owo-chart-plot {
    width: 100%;
    line-height: 0;
}

.owo-chart-plot svg {
    display: block;
    max-width: 100%;
    height: auto;
    overflow: visible;
}

.owo-chart-plot rect,
.owo-chart-plot path,
.owo-chart-plot circle {
    transition: opacity 0.15s ease;
}

.owo-chart-plot rect:hover,
.owo-chart-plot circle:hover {
    opacity: 0.82;
}

.owo-chart-empty {
    margin: 0;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    background: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

.owo-chart-empty[hidden] {
    display: none;
}

.owo-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.owo-chart-legend[hidden] {
    display: none;
}

.owo-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.owo-chart-swatch {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 3px;
    flex-shrink: 0;
}

/*
   The same numbers the chart draws, in a real table. Visually hidden rather
   than display:none so a screen reader still reaches it; a chart whose figures
   exist only as a picture is not accessible.
*/
.owo-chart-table-slot[hidden] {
    display: none;
}

.owo-chart-table {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===============================
   TABLES
   =============================== */
.table {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.table thead th {
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: var(--primary-soft);
}

/* ===============================
   BUTTONS
   =============================== */

.btn {
    border-radius: 0.6rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ===============================
   BADGES
   =============================== */

.badge {
    border-radius: 999px;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/*
   Status badges use a soft tint with a dark ink of the same hue. A solid amber
   or green with black text was the old approach and it failed contrast; a soft
   tint with matching dark text stays readable and reads as enterprise UI.

   green = successful / approved, amber = pending / warning, red = failed /
   rejected, blue = assigned / in flight, slate = neutral.
*/
.badge-status-pending { background-color: var(--warning-soft); color: var(--warning-ink); }
.badge-status-assigned { background-color: var(--info-soft); color: var(--info-ink); }
.badge-status-in_progress { background-color: var(--warning-soft); color: var(--warning-ink); }
.badge-status-completed { background-color: var(--success-soft); color: var(--success-ink); }
.badge-status-cancelled { background-color: var(--danger-soft); color: var(--danger-ink); }

/* Work record review states */
.badge-status-pending,
.badge-pending { background-color: var(--neutral-soft); color: var(--neutral-ink); }
.badge-status-approved,
.badge-approved { background-color: var(--success-soft); color: var(--success-ink); }
.badge-status-rejected,
.badge-rejected { background-color: var(--danger-soft); color: var(--danger-ink); }

/*
   Waiting on a decision, rather than refused. Distinct from badge-pending,
   which is the neutral "we have not looked at it yet" state, so a customer can
   tell an unread order from an unapproved timesheet.
*/
.badge-in-flight {
    background-color: var(--warning-soft);
    color: var(--warning-ink);
}

.badge-neutral {
    background-color: var(--neutral-soft);
    color: var(--neutral-ink);
}

/* Payment */
.badge-paid { background-color: var(--success-soft); color: var(--success-ink); }
.badge-partial { background-color: var(--warning-soft); color: var(--warning-ink); }
.badge-unpaid,
.badge-failed { background-color: var(--danger-soft); color: var(--danger-ink); }

/* ===============================
   SERVICE CARDS
   =============================== */

.service-card {
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ===============================
   BASKET
   =============================== */

.basket-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

/* ===============================
   FORMS
   =============================== */

.form-control {
    border-radius: 0.6rem;
    border: 1px solid var(--border);
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ===============================
   AUTH CARD
   =============================== */

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

/* ===============================
   SWEETALERT
   =============================== */

.swal2-popup {
    border-radius: 1rem !important;
}

/* ===============================
    MOBILE-FIRST RESPONSIVE DESIGN
    =============================== */

/* Mobile-first base styles */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem 0.75rem;
    }

    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .btn-sm {
        min-height: 36px;
        padding: 0.375rem 0.75rem;
    }

    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .nav-link {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

/* Tablet styles */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 3rem;
    }

    .display-5 {
        font-size: 2.5rem;
    }

    .display-6 {
        font-size: 2rem;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .display-4 {
        font-size: 3.5rem;
    }

    .display-5 {
        font-size: 3rem;
    }

    .display-6 {
        font-size: 2.5rem;
    }
}

/* Fluid images */
img {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .sidebar .nav-link:hover {
        background: transparent;
    }

    .table tbody tr:hover {
        background: transparent;
    }
}

/* Ensure proper spacing on mobile */
@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    main {
        padding: 1rem 0.5rem !important;
    }
}

/* --- Mobile drawer ----------------------------------------- */
/*
   Below the lg breakpoint the sidebar stops being a flex child and becomes an
   overlay drawer. It is translated off-canvas rather than display:none so the
   slide reads as movement, and it overlays the content instead of taking a
   permanent half of a phone screen.
*/
@media (max-width: 991.98px) {
    .owo-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1040;
        width: min(280px, 85vw);
        flex-basis: auto;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow-lg);
    }

    .owo-sidebar.is-open {
        transform: translateX(0);
    }

    .owo-topbar {
        padding: 0 0.875rem;
    }

    .owo-content {
        padding: 1rem 0.875rem 3rem;
    }

    /* Filter rows and form groups go single column rather than squeezing. */
    .owo-content .row > [class*="col-"] {
        margin-bottom: 0.5rem;
    }

    .owo-content .form-label {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    /* Buttons wrap instead of overflowing their row. */
    .owo-content .btn {
        white-space: nowrap;
    }

    .owo-content .table {
        font-size: 0.875rem;
    }

    .owo-content .card-body {
        padding: 0.875rem;
    }
}

/* Table responsive improvements */
.table-responsive {
    border-radius: var(--radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .table-responsive {
        margin: 0 -0.5rem;
    }
}

/* ===============================
    ROLE PRESENTATION
    =============================== */

/*
   The three portals share one palette.

   This used to re-point --primary per role: dark blue for admin, green for
   employee, purple for customer, with a purple --bg and a card hover lift for
   customers. That fought the brief, which asks for one set of tokens across
   all three (primary #2563EB, background #F8FAFC) and says the only role cue
   in the chrome is a small label. The role is shown by the chip in the top
   bar; the screens themselves stay one product.

   A role may still be given an accent where it is genuinely informative,
   through the status tokens, which are driven by state rather than by who is
   looking.
*/

/* ===============================
    PRINT
    =============================== */

@media print {
    .no-print { display: none !important; }
    /* Printing a portal page: drop the chrome, release the fixed frame so the
       document flows normally on paper. */
    body.owo-shell { height: auto; overflow: visible; }
    .owo-sidebar, .owo-sidebar-scrim, .owo-topbar, .owo-drawer-toggle { display: none !important; }
    .owo-column, .owo-content { display: block; overflow: visible; padding: 0; }
}

/* ===============================
   SWEETALERT2 NOTIFICATIONS
   =============================== */

/*
   The validation error list rendered inside a SweetAlert2 popup. Solid
   background, 1px border, no gradient.
*/
.owo-swal-errors {
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

.owo-swal-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.owo-swal-error-item {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-main);
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 3px solid var(--danger);
    border-radius: 0.5rem;
}

.owo-swal-error-item:last-child {
    margin-bottom: 0;
}

.owo-swal-error-field {
    flex-shrink: 0;
    font-weight: 600;
    color: #991b1b;
    text-transform: capitalize;
}

.owo-swal-popup {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* ===============================
   ERROR PAGES
   =============================== */

/*
   Standalone layout: the error pages must render without a database, without
   Vite and without the sidebar, so they carry their own minimal shell. Styling
   is flat (solid surfaces, 1px borders) to match the application.
*/
.owo-error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    color: var(--text-main);
}

.owo-error-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.owo-error-card {
    width: 100%;
    max-width: 640px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    text-align: center;
}

.owo-error-code {
    font-size: clamp(4rem, 14vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.owo-error-code.is-danger  { color: var(--danger); }
.owo-error-code.is-warning { color: var(--warning); }
.owo-error-code.is-info    { color: var(--info); }

.owo-error-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: var(--text-main);
}

.owo-error-message {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.owo-error-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    background-color: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.owo-error-badge.is-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.owo-error-panel {
    text-align: left;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}

.owo-error-panel h2 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.owo-error-panel ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.owo-error-panel li {
    margin-bottom: 0.375rem;
}

.owo-error-panel li:last-child {
    margin-bottom: 0;
}

.owo-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.owo-error-debug {
    text-align: left;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 3px solid var(--warning);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-top: 1.75rem;
}

.owo-error-debug h2 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #7c2d12;
    margin-bottom: 0.75rem;
}

.owo-error-debug dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    margin: 0;
    font-size: 0.8125rem;
}

.owo-error-debug dt {
    font-weight: 600;
    color: #9a3412;
}

.owo-error-debug dd {
    margin: 0;
    color: #7c2d12;
    word-break: break-word;
}

.owo-error-debug pre {
    background-color: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 0.5rem;
    padding: 0.875rem;
    margin-top: 0.875rem;
    overflow-x: auto;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #7c2d12;
}

.owo-error-footer {
    padding: 1.5rem 1rem 2rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.owo-error-footer a {
    color: var(--primary);
    text-decoration: none;
}

.owo-error-footer a:hover {
    text-decoration: underline;
}

/* ===============================
   LANDING PAGE
   =============================== */

/* Section rhythm and flat section separators. */
.owo-section {
    padding: 4.5rem 0;
}

.owo-section-alt {
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.owo-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background-color: var(--primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    padding: 0.3125rem 0.875rem;
    margin-bottom: 1rem;
}

.owo-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.owo-section-lead {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 42rem;
}

.owo-section-head {
    max-width: 44rem;
    margin: 0 auto 3rem;
    text-align: center;
}

/* Feature / service cards: flat, bordered, no gradient fills. */
.owo-card-flat {
    height: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.owo-card-flat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.owo-card-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.375rem;
    margin-bottom: 1rem;
    background-color: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.owo-card-icon.is-success {
    background-color: #f0fdf4;
    color: var(--success);
    border-color: #bbf7d0;
}

.owo-card-icon.is-warning {
    background-color: #fffbeb;
    color: var(--warning);
    border-color: #fde68a;
}

.owo-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.owo-card-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Stat strip. */
.owo-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.owo-stat-tile {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.owo-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.1;
}

.owo-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Primary call to action. */
.owo-cta {
    background-color: #0f172a;
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    color: #ffffff;
}

.owo-cta h2 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.owo-cta p {
    color: #cbd5e1;
    max-width: 40rem;
    margin: 0 auto 1.75rem;
}

.owo-cta .btn-light {
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .owo-section {
        padding: 3rem 0;
    }

    .owo-error-card {
        padding: 1.75rem 1.25rem;
    }

    .owo-cta {
        padding: 2rem 1.25rem;
    }
}

/* Brand strip at the top of the error pages. */
.owo-error-header {
    padding: 1.25rem 1.5rem 0;
    display: flex;
    justify-content: center;
}

.owo-error-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.owo-error-brand:hover,
.owo-error-brand:focus {
    opacity: 0.85;
}

/* Front landing page building blocks. Flat fills only. */
.owo-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: var(--primary-soft);
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

.owo-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}

/* Small light chip, used for the role label on the navy bar. */
.owo-chip {
    background-color: rgba(255, 255, 255, 0.14);
    color: var(--text-on-navy);
    border: 1px solid rgba(255, 255, 255, 0.20);
    font-weight: 600;
}

/* ===============================================================
   PUBLIC SITE
   ---------------------------------------------------------------
   These rules used to live in an inline <style> block inside
   layouts/front.blade.php, which meant two competing definitions of
   .step-number, .service-card, .section-title and the pagination
   in two different blues. Everything now lives here, on the tokens
   above, so there is one source of truth.
   =============================================================== */

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 3.5rem 0;
    }
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0;
}

/* --- Hero ------------------------------------------------------ */

.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
    color: var(--text-on-navy);
}

/*
   Flat scrim, one solid colour. When no hero image is uploaded the
   scrim sits over the navy block, so the hero keeps its contrast
   either way.
*/
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.72);
    z-index: 1;
}

.hero-section--plain::before {
    display: none;
}

/*
   Full bleed slideshow. The photograph is carried by the <picture> wrapper
   because a <picture> has no box of its own once it is absolutely positioned,
   and the <img> inside is then sized to fill it. object-fit: cover means a
   portrait slide and a landscape slide both fill the frame without letterbox
   bars, so the showreel never changes height as it rolls over.
*/
#heroCarousel .carousel-inner {
    position: relative;
}

#heroCarousel .carousel-item {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
}

#heroCarousel .hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    margin: 0;
    background-color: var(--navy);
}

#heroCarousel .hero-slide-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/*
   Copy sits above the scrim (.hero-section::before), which is the flat
   rgba(15, 23, 42, 0.72) block. No gradient: one solid tone over the photo
   keeps the headline legible on a light photograph without a second treatment.
*/
#heroCarousel .hero-slide-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.hero-copy {
    max-width: 40rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Carousel controls sit clear of the copy on narrow screens. */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 8%;
    opacity: 0.75;
}

#heroCarousel .carousel-indicators {
    margin-bottom: 1.25rem;
}

.hero-row {
    min-height: 420px;
}

@media (max-width: 991.98px) {
    .hero-row {
        min-height: 0;
        padding: 3.5rem 0;
    }

    #heroCarousel .carousel-item {
        min-height: 480px;
    }

    #heroCarousel .hero-slide-body {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text-on-navy);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 38rem;
    color: var(--text-on-navy-muted);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-on-navy);
    background-color: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-badge .hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--success);
}

/*
   Right hand hero panel. Used when no photograph is available, so
   the column is never left empty.
*/
.hero-panel {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.hero-panel-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-on-navy-muted);
    margin-bottom: 1rem;
}

.hero-panel-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-panel-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.hero-panel-item i {
    color: #93c5fd;
    font-size: 1.125rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.hero-panel-item strong {
    display: block;
    color: var(--text-on-navy);
    font-weight: 600;
    font-size: 0.9375rem;
}

.hero-panel-item span {
    color: var(--text-on-navy-muted);
    font-size: 0.8125rem;
}

@media (max-width: 991.98px) {
    .hero-panel {
        margin-top: 2rem;
    }
}

/* --- Service cards -------------------------------------------- */

.service-card {
    height: 100%;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm) !important;
    background-color: var(--bg-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-md) !important;
}

/* --- Numbered process steps ----------------------------------- */

.owo-steps .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

/*
   A Bootstrap column is a flex item, and a flex item will not shrink
   below its min-content width. If a card's padding plus a long word
   exceed the column, the text is forced to wrap one word per line.
   min-width: 0 lets the card actually shrink with its column.
*/
.owo-steps [class*="col-"] {
    min-width: 0;
}

.owo-steps .owo-card-flat {
    display: flex;
    flex-direction: column;
}

.owo-steps h3 {
    font-weight: 600;
    color: var(--text-main);
    overflow-wrap: break-word;
}

.owo-steps p {
    color: var(--text-muted);
}

/* --- Capability grid ------------------------------------------ */

.owo-capability {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.owo-capability .owo-icon-tile {
    flex-shrink: 0;
}

.owo-capability h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.owo-capability p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Dark trust section --------------------------------------- */

.owo-trust {
    background-color: var(--navy);
    color: var(--text-on-navy);
}

.owo-trust .section-title,
.owo-trust .owo-section-head .section-title {
    color: var(--text-on-navy);
}

.owo-trust .owo-eyebrow {
    color: #93c5fd;
    background-color: rgba(147, 197, 253, 0.12);
    border-color: rgba(147, 197, 253, 0.28);
}

.owo-trust-item {
    height: 100%;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
}

.owo-trust-item i {
    font-size: 1.5rem;
    color: #93c5fd;
    line-height: 1;
    margin-bottom: 0.875rem;
}

.owo-trust-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-navy);
    margin-bottom: 0.375rem;
}

.owo-trust-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-on-navy-muted);
    margin-bottom: 0;
}

/* --- Carousel indicators -------------------------------------- */

.carousel-indicators {
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button.active {
    background-color: #ffffff;
}

/* --- Services listing page ------------------------------------- */

/*
   These lived in an inline <style> block on front/services.blade.php, which
   also re-declared .service-card in a different blue and with a 24px radius.
   Flat fills, moderate radius, tokens only.
*/
.services-hero {
    background-color: var(--navy);
    border-radius: var(--radius-lg);
    padding: 4.5rem 2rem;
    color: var(--text-on-navy);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.services-hero::before,
.services-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
}

.services-hero::before {
    width: 250px;
    height: 250px;
    top: -80px;
    right: -80px;
}

.services-hero::after {
    width: 180px;
    height: 180px;
    bottom: -70px;
    left: -70px;
}

.services-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-on-navy);
}

.services-hero p {
    max-width: 44rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    color: var(--text-on-navy-muted);
}

.filter-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.filter-box .form-control,
.filter-box .form-select {
    height: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.filter-box .form-control:focus,
.filter-box .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.filter-box .btn {
    border-radius: var(--radius);
    padding-inline: 1.5rem;
}

.service-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background-color: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
}

.badge-category {
    background-color: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-card .card-title {
    font-weight: 700;
    color: var(--text-main);
}

.service-card .card-text {
    min-height: 48px;
}

.service-card .btn {
    border-radius: var(--radius);
    height: 46px;
}

.service-card input {
    border-radius: var(--radius) 0 0 var(--radius) !important;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.empty-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767.98px) {
    .services-hero {
        padding: 3rem 1.5rem;
    }

    .service-card .card-text {
        min-height: auto;
    }
}

/* --- Pagination ------------------------------------------------ */

.owo-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.owo-pagination .page-item {
    list-style: none;
}

.owo-pagination .page-link {
    border: none !important;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    border-radius: var(--radius) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.owo-pagination .page-link:hover,
.owo-pagination .page-link:focus {
    background-color: var(--primary);
    color: #ffffff;
}

.owo-pagination .active .page-link {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.owo-pagination .disabled .page-link {
    background-color: var(--bg-subtle);
    color: var(--text-muted);
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

.owo-pagination .page-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.owo-page-arrow {
    font-size: 1.35rem;
    font-weight: 700;
    padding-bottom: 3px;
}

.owo-page-ellipsis {
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
}
