/* ----------------------------------------------------------------------------
 * Learning centre, v3 design system.
 *
 * Covers the 23 *_tutorial pages plus manufacturdemo / retaildemo /
 * distributerdemo. They share one layout: a left rail of numbered lessons
 * (.list-group.nav-tabs > .list-group-item) beside a video pane
 * (.bhoechie-tab-content), under a "Tutorial Videos" heading.
 *
 * Scoped under .v3-tut, a class added to each page's existing root
 * .container-fluid. That matters here: the pages lean on Bootstrap names
 * (.breadcrumb, .list-group, .list-group-item, .nav-tabs, .container) which
 * must not be restyled site-wide — the shared header and every other page use
 * them too.
 *
 * Tokens come from v3-shell.css (:root), loaded by views/partials/v3_head.php.
 * -------------------------------------------------------------------------- */

.v3-tut{
  font-family:var(--v3-body);background:var(--v3-paper);color:var(--v3-ink);
  margin-top:0!important;                  /* was inline margin-top:5rem */
  padding-block:clamp(32px,4.5vw,64px);
  font-size:17px;line-height:1.6;
}
.v3-tut *,.v3-tut *::before,.v3-tut *::after{box-sizing:border-box}
.v3-tut a:focus-visible{outline:3px solid var(--v3-lime);outline-offset:3px}

/* page heading */
.v3-tut > .container > h1{
  font-family:var(--v3-display);font-weight:800;text-transform:uppercase;
  font-size:clamp(34px,4.6vw,58px)!important;line-height:.95;
  text-align:left!important;margin:0 0 28px;color:var(--v3-ink);text-wrap:balance;
}

/* breadcrumb */
.v3-tut .breadcrumb{
  background:transparent;padding:0;margin:0 0 18px;border-radius:0;
  font-family:var(--v3-mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;
}
.v3-tut .breadcrumb > li + li::before{content:"/";color:var(--v3-steel-2);padding:0 8px}
.v3-tut .breadcrumb a{color:var(--v3-steel)}
.v3-tut .breadcrumb a:hover{color:var(--v3-ink);text-decoration:none}

/* lesson rail */
.v3-tut .list-group.nav-tabs{
  border:1px solid var(--v3-rule);border-radius:6px;overflow:hidden;background:var(--v3-card);
}
.v3-tut .list-group-item{
  display:block;border:0;border-bottom:1px solid var(--v3-rule);border-radius:0!important;
  background:var(--v3-card);color:var(--v3-ink);
  font-family:var(--v3-body);font-weight:600;font-size:14.5px;line-height:1.4;
  padding:13px 16px;transition:background .15s ease,color .15s ease;
}
.v3-tut .list-group-item:last-child{border-bottom:0}
.v3-tut a.list-group-item:hover{background:var(--v3-paper);color:var(--v3-ink);text-decoration:none}
.v3-tut a.list-group-item.active,
.v3-tut a.list-group-item.active:hover,
.v3-tut a.list-group-item.active:focus{
  background:var(--v3-ink)!important;color:#f2f4ea!important;border-color:var(--v3-ink);
}
/* module name sits at the top of the rail */
.v3-tut .list-group-item.fst-hd{
  background:var(--v3-lime);color:var(--v3-ink);
  font-family:var(--v3-display);font-weight:800;text-transform:uppercase;
  font-size:24px;line-height:1;padding:16px;border-bottom:0;
}
.v3-tut .list-group-item.fst-hd:hover{background:var(--v3-lime);color:var(--v3-ink)}

/* video pane */
.v3-tut .bhoechie-tab-content{
  background:var(--v3-card);border:1px solid var(--v3-rule);border-radius:6px;
  padding:clamp(16px,2.2vw,26px);
}
.v3-tut .bhoechie-tab-content h2,
.v3-tut .bhoechie-tab-content h3{
  font-family:var(--v3-display);font-weight:800;text-transform:uppercase;
  font-size:26px;line-height:1.02;margin:0 0 14px;color:var(--v3-ink);
}
.v3-tut .bhoechie-tab-content p,
.v3-tut .bhoechie-tab-content li{color:var(--v3-steel);line-height:1.6;font-size:16px}
.v3-tut .bhoechie-ul,.v3-tut .bhoechieul,.v3-tut .list-group-ul{padding-left:20px;margin:12px 0}

/* keep embedded video 16:9 and inside its column */
.v3-tut .elementor-video,
.v3-tut .video-widget-container iframe,
.v3-tut .bhoechie-tab-content iframe{
  width:100%;aspect-ratio:16/9;height:auto;display:block;
  border:0;border-radius:4px;background:var(--v3-ink);
}
.v3-tut img{max-width:100%;height:auto}

@media (max-width:991px){
  /* the rail is a col-*-4 that becomes cramped; let it run full width above the video */
  .v3-tut .video-section{display:flex;flex-direction:column}
  .v3-tut .bhoechie-tab-menu,.v3-tut .bhoechie-tab{width:100%;float:none}
  .v3-tut .bhoechie-tab{margin-top:20px}
}
@media (max-width:600px){
  .v3-tut{font-size:16px}
  .v3-tut .list-group-item{font-size:14px;padding:12px 14px}
}
@media (prefers-reduced-motion:reduce){
  .v3-tut *{transition:none!important;animation:none!important}
}


/* ---------------------------------------------------------------------------
 * v3 pass 2
 * ------------------------------------------------------------------------- */

/* THE RAIL ROWS WERE SHRINK-WRAPPED. header.php carries an in-body <style>
   with .video-section .list-group-item{width:fit-content!important}, so every
   lesson row sized to its own text and the hairline under each one was a
   different length - 182px, 120px, 152px, 196px down a 287px rail. That rule
   is !important AND loads after this file, so beating it needs both higher
   specificity and !important; this is one of the few places it is honest. */
.v3-tut .video-section .list-group.nav-tabs > .list-group-item{
  width:auto!important;
}

/* lesson rail: a current-lesson marker you can actually see */
.v3-tut .list-group.nav-tabs{border-radius:14px}
.v3-tut a.list-group-item{position:relative;padding-left:20px}
.v3-tut a.list-group-item::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:transparent;transition:background .15s ease;
}
.v3-tut a.list-group-item:hover::before{background:var(--v3-rule)}
.v3-tut a.list-group-item.active::before{background:var(--v3-lime)}
.v3-tut .list-group-item.fst-hd{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  border-radius:13px 13px 0 0;
}
/* injected by v3-learning.js */
.v3-tut .fst-hd .v3-tut-count{
  font-family:var(--v3-mono);font-size:11px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--v3-ink);opacity:.7;flex:none;
}

/* The rail runs to 11 rows on some modules and the video is tall, so the
   lesson you came from scrolls away. Pinned under the sticky nav instead. */
@media (min-width:992px){
  .v3-tut .bhoechie-tab-menu{
    position:sticky;top:calc(var(--v3-nav-h, 95px) + 20px);align-self:start;
  }
}

/* pane + stage */
.v3-tut .bhoechie-tab-content{border-radius:14px}
.v3-tut .video-widget-container{margin-top:0!important}

/* THE FLOWCHARTS CARRY width="65%" AS AN HTML ATTRIBUTE, which rendered a
   dense diagram at 505px inside an 831px pane - unreadable. Full width here,
   and v3-learning.js makes each one open at full size in a new tab, because
   even 831px is not enough for these charts. */
.v3-tut .bhoechie-tab-content img{
  width:100%!important;max-width:100%;height:auto;
  border:1px solid var(--v3-rule);border-radius:10px;background:#fff;
}
/* No border change on hover - it darkened the whole frame to ink and read as
   the image being selected rather than as an affordance. The "Open full size"
   note below carries the hover feedback instead. */
.v3-tut .v3-tut-zoom{display:block;text-decoration:none}
.v3-tut .v3-tut-zoomnote{
  display:inline-flex;align-items:center;gap:7px;margin-top:12px;
  font-family:var(--v3-mono);font-size:11px;letter-spacing:.07em;
  text-transform:uppercase;color:var(--v3-steel);
}
.v3-tut .v3-tut-zoom:hover + .v3-tut-zoomnote,
.v3-tut .v3-tut-zoomnote:hover{color:var(--v3-ink)}

/* the longer per-page headings need a little less size than the old generic
   "Tutorial Videos" did */
.v3-tut > .container > h1{
  font-size:clamp(30px,3.6vw,46px)!important;margin-bottom:22px;
}

@media (max-width:991px){
  .v3-tut .bhoechie-tab-menu{position:static}
}

/* Not every lesson is a video. Several modules - Sales App, Accounting, Task
   Management - are written documentation in the same panes, so the pane needs
   real prose styling and not just a video frame. The source uses h3/h4/h5
   interchangeably for the same level, often with inline font-size and
   font-weight that cannot be overridden without !important; family, colour
   and rhythm are set here and the inline sizes are left alone. */
.v3-tut .bhoechie-tab-content h4,
.v3-tut .bhoechie-tab-content h5,
.v3-tut .bhoechie-tab-content h6{
  font-family:var(--v3-display);color:var(--v3-ink);
  line-height:1.2;margin:22px 0 10px;
}
.v3-tut .bhoechie-tab-content h4{font-size:19px}
.v3-tut .bhoechie-tab-content h5{font-size:17px}
.v3-tut .bhoechie-tab-content h6{font-size:15px}
.v3-tut .bhoechie-tab-content > *:first-child{margin-top:0}
.v3-tut .bhoechie-tab-content b,
.v3-tut .bhoechie-tab-content strong{color:var(--v3-ink);font-weight:700}
.v3-tut .bhoechie-tab-content ul,
.v3-tut .bhoechie-tab-content ol{margin:12px 0;padding-left:22px}
.v3-tut .bhoechie-tab-content li{margin-bottom:7px}
.v3-tut .bhoechie-tab-content li::marker{color:var(--v3-olive, #566000)}
/* prose wants a measure; video does not, so this is on the text only */
.v3-tut .bhoechie-tab-content p{max-width:70ch}

.v3-tut .bhoechie-tab-content table{
  width:100%;border-collapse:collapse;margin:16px 0;font-size:15px;
}
.v3-tut .bhoechie-tab-content th,
.v3-tut .bhoechie-tab-content td{
  border:1px solid var(--v3-rule);padding:9px 12px;text-align:left;
  vertical-align:top;color:var(--v3-steel);
}
.v3-tut .bhoechie-tab-content th{
  background:var(--v3-paper);color:var(--v3-ink);font-weight:700;
}

/* header.php's in-body <style> fights this file in four more places. It is
   in-body so it loads after every head stylesheet and wins at equal
   specificity; each of these needs specificity AND !important.
   1. width:fit-content on the rows (above) left them laid out as wrapped
      pills rather than a stack - measured 136/105/101 repeating at 390px.
   2. a:hover{padding-left:25px} made every row jump 5px on hover.
   3. a.active:after draws a black CSS triangle off the right edge of the
      active row - the stray mark beside "1. Flow Chart".
   4. a.active{background-color:white} would flatten the active row. */
.v3-tut .video-section .list-group.nav-tabs{display:block!important}
.v3-tut .video-section .list-group.nav-tabs > .list-group-item{
  display:block!important;width:100%!important;max-width:none!important;
  float:none!important;
}
.v3-tut .video-section a.list-group-item:hover{
  padding-left:20px!important;background-color:var(--v3-paper)!important;
}
.v3-tut .bhoechie-tab-menu .list-group > a.active::after{content:none!important}
.v3-tut .bhoechie-tab-menu .list-group > a.active{
  background-color:var(--v3-ink)!important;color:#f2f4ea!important;
}

/* ---------------------------------------------------------------------------
 * Lessons with no video
 * Many panes are a heading and nothing else - /account_tutorial has 19 and
 * exactly one carries media. An empty pane reads as a page that failed to
 * load, so it now says what it is, and the rail marks them so nobody clicks
 * through eighteen to find out.
 * ------------------------------------------------------------------------- */
.v3-tut .v3-tut-nomedia{
  display:flex;flex-direction:column;gap:6px;
  margin:18px 0 6px;padding:22px 24px;max-width:none;
  background:var(--v3-paper);border:1px dashed var(--v3-rule);border-radius:12px;
}
.v3-tut .v3-tut-nomedia-t{
  font-family:var(--v3-mono);font-size:11.5px;letter-spacing:.09em;
  text-transform:uppercase;color:var(--v3-steel);
}
.v3-tut .v3-tut-nomedia-s{font-size:15.5px;color:var(--v3-ink);line-height:1.5}
.v3-tut .v3-tut-nomedia a{color:var(--v3-ink);text-decoration:underline;text-underline-offset:3px}
.v3-tut .v3-tut-nomedia a:hover{color:var(--v3-olive, #566000)}

/* rail markers: a lesson that plays, and one that does not yet */
.v3-tut .list-group a.is-video::after,
.v3-tut .list-group a.is-nomedia::after{
  float:right;margin-left:10px;font-family:var(--v3-mono);font-size:10px;
  letter-spacing:.06em;line-height:1.6;
}
.v3-tut .list-group a.is-video::after{content:"\25B6";color:var(--v3-steel-2)}
.v3-tut .list-group a.is-nomedia::after{content:"SOON";color:var(--v3-steel-2);opacity:.85}
.v3-tut .list-group a.active.is-video::after,
.v3-tut .list-group a.active.is-nomedia::after{color:var(--v3-lime)}

/* Sub-lessons inside a collapse group. These are <ul class="list-group-ul">
   nested in the rail; untouched they rendered as a bulleted paragraph sitting
   in the middle of the lesson list. */
.v3-tut .list-group .collapse .list-group-ul,
.v3-tut .list-group .collapsing .list-group-ul{
  list-style:none;margin:0;padding:0;background:var(--v3-paper);
  border-bottom:1px solid var(--v3-rule);
}
.v3-tut .list-group .list-group-ul > li{margin:0}
.v3-tut .list-group .list-group-ul > li > a{
  display:block;padding:10px 16px 10px 30px;
  font-size:13.5px;line-height:1.4;color:var(--v3-steel);
  border-top:1px solid var(--v3-rule);text-decoration:none;
  transition:background .15s ease,color .15s ease;
}
.v3-tut .list-group .list-group-ul > li:first-child > a{border-top:0}
.v3-tut .list-group .list-group-ul > li > a:hover{background:#fff;color:var(--v3-ink)}
.v3-tut .list-group .list-group-ul > li > a.active{
  background:var(--v3-ink);color:#f2f4ea;
}
.v3-tut .list-group .list-group-ul > li > a::after{float:right;margin-left:8px}

/* a group header that opens a sub-list should look like one */
.v3-tut .list-group a[data-toggle="collapse"]::after{
  content:"+";float:right;margin-left:10px;
  font-family:var(--v3-mono);font-size:15px;line-height:1.2;color:var(--v3-steel-2);
}
.v3-tut .list-group a[data-toggle="collapse"][aria-expanded="true"]::after{content:"\2212"}


/* ---------------------------------------------------------------------------
 * Rail, pass 2. The SOON badge and the +/- were floated, which only works on
 * a single-line row: on "Setting up Temporary Credit Limit of customers" the
 * float dropped to a second line and sat detached under the text. Rows are
 * flex now, so the label takes the space it needs and the badge stays pinned
 * on the first line whatever the label does.
 * ------------------------------------------------------------------------- */
.v3-tut .video-section .list-group.nav-tabs > .list-group-item{
  display:flex!important;align-items:center;justify-content:space-between;gap:10px;
}
.v3-tut .list-group .list-group-ul > li > a{
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
}
/* badges are flex items now, not floats */
.v3-tut .list-group a.is-video::after,
.v3-tut .list-group a.is-nomedia::after,
.v3-tut .list-group a[data-toggle="collapse"]::after,
.v3-tut .list-group .list-group-ul > li > a::after{
  float:none;margin-left:0;flex:none;align-self:center;
}
.v3-tut .list-group a.is-nomedia::after{
  border:1px solid var(--v3-rule);border-radius:999px;padding:2px 7px;
  line-height:1.4;background:#fff;
}
.v3-tut .list-group a.active.is-nomedia::after{
  border-color:rgba(255,255,255,.35);background:transparent;
}

/* A sub-lesson should read as belonging to the group above it. A rule down
   the indent does that without another level of boxes. */
.v3-tut .list-group .collapse .list-group-ul,
.v3-tut .list-group .collapsing .list-group-ul{
  position:relative;
}
.v3-tut .list-group .list-group-ul::before{
  content:"";position:absolute;left:16px;top:0;bottom:0;width:1px;
  background:var(--v3-rule);
}
.v3-tut .list-group .list-group-ul > li > a{
  padding-left:30px;color:var(--v3-ink);
}
.v3-tut .list-group .list-group-ul > li > a:hover{background:#fff}

/* the group header carries the module's own weight, the sub-lesson does not */
.v3-tut .list-group a[data-toggle="collapse"]{font-weight:700}
.v3-tut .list-group .list-group-ul > li > a{font-weight:500}

/* A clicked lesson kept a black focus ring - that is the UA default, not a
   deliberate state. Keyboard focus still gets the lime ring from the top of
   this file. */
.v3-tut .list-group a:focus{outline:none}
.v3-tut .list-group a:focus-visible{outline:3px solid var(--v3-lime);outline-offset:-3px}


/* ==========================================================================
   TUTORIALS ON A PHONE  (added 2026-10-14)
   24 tutorial views share this template, so these three targets were the
   same three on every one of them. Measured at 390px:
     .breadcrumb a ("Back")              46x23
     .v3-tut-nomedia-s a ("book a demo") 123x21  - inline in a sentence
     .v3-tut-count ("18 lessons")        11px
   ========================================================================== */
@media (max-width:767.98px){
  .v3-tut .v3-tut-count{font-size:12.5px}
}
@media (hover:none) and (pointer:coarse){
  /* "Back" is the only way up a level on these pages */
  .v3-tut .breadcrumb a{
    display:inline-flex;align-items:center;min-height:44px;padding-right:6px;
  }
  /* an inline link inside a sentence cannot be made 44px tall without
     breaking the line box, so it gets the width instead - vertical
     padding that overlaps the lines above and below would swallow their
     taps, which is worse than a short target */
  .v3-tut .v3-tut-nomedia-s a{padding:6px 4px;display:inline-block}
}
