/* CIS integration for the supplied Vionex theme. */
[x-cloak] { display: none !important; }
.cis-admin {
  --rail-w: 64px;
  --panel-w: 220px;
  --sidebar-w: calc(var(--rail-w) + var(--panel-w));
  --shell-gutter: 0px;
  --header-h: 80px;
  --animate-duration: .45s;
  background: var(--surface-soft);
}
.cis-admin .app-main { height: auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface-soft); }
.cis-admin .app-content { flex: 1; padding: 28px; min-width: 0; }
.cis-admin .app-sidebar { overflow: hidden; }
.cis-admin .sidebar-rail { padding: 24px 10px; gap: 18px; background: rgba(0,0,0,.13); }
.cis-rail-logo { width: 42px; height: 42px; border-radius: 14px; background: var(--secondary); color: var(--nav-bg); display: grid; place-items: center; font-size: 21px; }
.cis-admin .rail-btn { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; border: 0; }
.cis-admin .sidebar-panel { min-height: 0; padding: 24px 12px 16px; }
.cis-brand { display: flex; align-items: center; gap: 10px; padding: 0 7px 28px; color: #fff; }
.cis-brand:hover { color: #fff; }
.cis-brand-mark { font-size: 24px; font-weight: 800; letter-spacing: -.8px; }
.cis-brand small { display: block; color: rgba(255,255,255,.6); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; }
.cis-nav-label { color: rgba(255,255,255,.45); text-transform: uppercase; font-size: 10px; letter-spacing: 1.8px; padding: 8px 14px 12px; }
.cis-admin .sidebar-link { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; text-align: left; background: transparent; font-size: 13px; padding: 12px 13px; border-radius: 10px; margin-bottom: 3px; }
.cis-admin .sidebar-link > i:first-child { width: 18px; text-align: center; flex-shrink: 0; }
.cis-admin .sidebar-link.active { background: var(--secondary); color: var(--nav-bg); font-weight: 600; }
.cis-admin .sidebar-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.cis-admin .sidebar-link.active:hover { background: var(--secondary); color: var(--nav-bg); }
.cis-admin .sidebar-caret { margin-left: auto; font-size: 10px; }
.cis-admin .sidebar-submenu { margin: 3px 0 10px 22px; border-left: 1px solid rgba(255,255,255,.15); padding-left: 7px; }
.cis-admin .sidebar-child { padding: 9px 12px; font-size: 12px; }
.cis-sidebar-foot { margin-top: auto; padding: 20px 8px 0; }
.cis-sidebar-foot a { display: flex; align-items: center; justify-content: space-between; padding: 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; font-size: 12px; }
.cis-admin .app-header.cis-topbar { position: sticky; top: 0; display: flex; align-items: center; gap: 20px; padding: 0 28px; background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.cis-topbar-title { color: var(--text-title); font-size: 15px; font-weight: 600; min-width: 0; }
.cis-topbar-title small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 400; margin-bottom: 2px; }
.cis-icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface); color: var(--text-title); flex-shrink: 0; }
.cis-icon-button:hover { background: var(--surface-soft); color: var(--primary); }
.cis-search-trigger { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--border-soft); color: var(--text-muted); background: var(--surface-soft); font-size: 12px; min-width: 230px; }
.cis-search-trigger kbd { margin-left: auto; background: var(--surface); color: var(--text-muted); border: 1px solid var(--border-soft); font-size: 10px; }
.cis-profile { position: relative; }
.cis-avatar { display: grid; place-items: center; width: 38px; height: 38px; border: none; border-radius: 50%; color: var(--nav-bg); background: var(--secondary); font-size: 13px; font-weight: 700; }
.cis-profile-menu { position: absolute; top: 50px; right: 0; width: 235px; padding: 8px; border: 1px solid var(--border-soft); border-radius: 15px; box-shadow: var(--shadow-2); background: var(--surface); z-index: 1060; }
.cis-profile-menu a { display: flex; gap: 10px; padding: 10px; border-radius: 8px; font-size: 13px; }
.cis-profile-menu a:hover { background: var(--surface-soft); }
.cis-user-info { padding: 10px; margin-bottom: 5px; border-bottom: 1px solid var(--border-soft); overflow-wrap: anywhere; }
.cis-user-info small { color: var(--text-muted); display: block; }
.cis-admin .app-footer { padding: 18px 28px; display: flex; justify-content: space-between; gap: 16px; color: var(--text-muted); font-size: 12px; }
.cis-breadcrumb { display: flex; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.cis-breadcrumb a { color: var(--primary); }
.cis-heading { color: var(--text-title); font-weight: 700; letter-spacing: -.6px; font-size: clamp(25px,3vw,32px); margin-bottom: 8px; }
.cis-muted { color: var(--text-muted); }
.cis-eyebrow { color: var(--primary); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.cis-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.cis-date { border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); padding: 11px 15px; font-size: 12px; white-space: nowrap; }
.cis-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 26px; }
.cis-stat { display: block; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-soft); transition: box-shadow .2s, border-color .2s; }
.cis-stat:hover { border-color: var(--primary); box-shadow: var(--shadow-1); color: inherit; }
.cis-stat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.cis-stat-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--primary-soft); font-size: 19px; }
.cis-stat-icon.violet { color: #7c3aed; background: rgba(124,58,237,.1); }
.cis-stat-icon.amber { color: #b77900; background: rgba(245,158,11,.12); }
.cis-stat-icon.rose { color: #db2777; background: rgba(219,39,119,.1); }
.cis-stat-number { display: block; color: var(--text-title); font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.cis-stat-label { color: var(--text-muted); font-size: 13px; }
.cis-panel { border: 1px solid var(--border-soft); border-radius: 18px; background: var(--surface); overflow: hidden; height: 100%; }
.cis-panel-head { padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--border-soft); }
.cis-panel-head h2 { font-size: 16px; font-weight: 600; margin: 0; color: var(--text-title); }
.cis-panel-body { padding: 22px 24px; }
.cis-quick-link { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--border-soft); }
.cis-quick-link:first-child { padding-top: 0; }
.cis-quick-link:last-child { border-bottom: 0; padding-bottom: 0; }
.cis-quick-link > span { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-title); }
.cis-quick-link small { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); margin-top: 3px; }
.cis-empty { padding: 36px; text-align: center; color: var(--text-muted); }
.cis-admin .page-header { font-size: 24px; color: var(--text-title); margin: 0 0 22px; font-weight: 700; }
.cis-admin .widget { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; margin-bottom: 24px; overflow: hidden; }
.cis-admin .widget-header { padding: 18px 22px; font-size: 16px; font-weight: 600; color: var(--text-title); border-bottom: 1px solid var(--border-soft); }
.cis-admin .widget-body { display: block; padding: 22px; }
.cis-admin .table { background: var(--surface); color: var(--text-primary); margin-top: 14px; border-color: var(--border-soft); font-size: 13px; }
.cis-admin .table > :not(caption) > * > * { padding: 13px 15px; vertical-align: middle; color: inherit; background: transparent; }
.cis-admin .table > thead > tr, .cis-admin .table:not(:has(thead)) > tbody > tr:first-child { background: var(--surface-soft); color: var(--text-muted); font-size: 11px; font-weight: 600; }
.cis-admin .table > thead > tr > *, .cis-admin .table:not(:has(thead)) > tbody > tr:first-child > * { background: var(--surface-soft); }
.cis-admin .table td[bgcolor] { background: var(--surface-soft); }
.cis-admin .table .btn { font-size: 11px; padding: 6px 10px; margin: 2px; white-space: nowrap; }
.cis-admin .table img { border-radius: 8px; object-fit: cover; }
.cis-admin .table-responsive { position: relative; border-radius: 12px; }
.cis-admin .cis-data-table { min-width: 740px; }
.cis-admin .btn { border-radius: 10px; font-size: 13px; padding: 10px 16px; font-weight: 500; }
.cis-admin :is(input:not([type]),input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],input[type=date],input[type=tel],input[type=search],select,textarea) {
  max-width: 100%; border: 1px solid var(--border-color); border-radius: 9px; padding: 9px 12px; color: var(--text-title); background: var(--surface); font-size: 13px;
}
.cis-admin :is(input,select,textarea):focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.cis-admin input[type=submit]:not(.btn) { border: 0; border-radius: 9px; padding: 10px 18px; color: var(--text-on-primary); background: var(--primary); cursor: pointer; }
.cis-admin .pull-right { float: right; }
.cis-admin .pull-left { float: left; }
.cis-admin .col-xs-12 { width: 100%; }
.cis-admin .form-group { margin-bottom: 18px; }
.cis-admin .help-block { color: var(--text-muted); font-size: 12px; }
.cis-admin .mb-20 { margin-bottom: 20px; }
.cis-admin .glyphicon { font-family: inherit; }
.cis-admin .mce-container { color: #222; }
.cis-admin .mce-tinymce { max-width: 100%; }
.cis-admin .pagination { gap: 4px; margin-top: 20px; }
.cis-admin .pagination a { border-radius: 8px; }
.cis-search-mask { position: fixed; inset: 0; z-index: 2000; background: rgba(8,25,38,.55); backdrop-filter: blur(5px); padding: min(15vh,100px) 16px 24px; overflow-y: auto; }
.cis-search-dialog { max-width: 580px; margin: auto; border: 1px solid var(--border-soft); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow-3); overflow: hidden; }
.cis-search-field { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.cis-admin .cis-search-field input { border: 0; flex: 1; min-width: 0; font-size: 15px; padding: 8px 0; }
.cis-search-results { max-height: 50vh; overflow-y: auto; padding: 10px; }
.cis-search-result { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; }
.cis-search-result:hover,.cis-search-result:focus { background: var(--surface-soft); color: var(--primary); }
.cis-search-result small { display: block; color: var(--text-muted); font-size: 11px; }
.cis-login { min-height: 100dvh; background: var(--surface); }
.cis-login-shell { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100dvh; }
.cis-login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 48px clamp(32px,5vw,80px); background: var(--nav-bg); color: #fff; }
.cis-login-story::after { content: ''; width: 600px; height: 600px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; position: absolute; right: -260px; bottom: -240px; box-shadow: 0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.025); pointer-events: none; }
.cis-login-logo { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 700; z-index: 1; }
.cis-login-logo img { width: 58px; height: 58px; object-fit: contain; background: #fff; padding: 6px; border-radius: 16px; }
.cis-login-story h1 { color: #fff; font-size: clamp(36px,4.2vw,60px); line-height: 1.15; font-weight: 700; letter-spacing: -1.5px; max-width: 540px; }
.cis-login-story h1 span { color: var(--secondary); }
.cis-login-story p { max-width: 420px; color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.8; }
.cis-login-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cis-login-chips span { padding: 9px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); font-size: 12px; color: rgba(255,255,255,.8); }
.cis-login-form-panel { padding: 35px clamp(24px,5vw,80px); display: flex; flex-direction: column; }
.cis-login-form { max-width: 400px; width: 100%; margin: auto; padding: 44px 0; }
.cis-login-form h2 { font-size: 30px; font-weight: 700; color: var(--text-title); letter-spacing: -.7px; }
.cis-login-form label { font-size: 13px; font-weight: 500; margin-bottom: 9px; color: var(--text-title); }
.cis-login-form .form-control { width: 100%; min-height: 49px; border-radius: 10px; }
.cis-password-field { position: relative; }
.cis-password-field input { padding-right: 48px !important; }
.cis-password-field button { position: absolute; right: 8px; top: 7px; border: 0; width: 35px; height: 35px; border-radius: 8px; background: transparent; color: var(--text-muted); }
.cis-login-form .btn-primary { min-height: 49px; }
.cis-login-footer { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; color: var(--text-muted); }
.cis-admin .text-brand,.cis-login .text-brand,.cis-admin .cis-eyebrow,.cis-login .cis-eyebrow,.cis-admin .cis-breadcrumb a { color: #087b8b !important; }
[data-bs-theme="dark"] .cis-admin .text-brand,[data-bs-theme="dark"] .cis-login .text-brand,[data-bs-theme="dark"] .cis-admin .cis-eyebrow,[data-bs-theme="dark"] .cis-login .cis-eyebrow,[data-bs-theme="dark"] .cis-admin .cis-breadcrumb a { color: var(--secondary) !important; }
:is(.cis-admin,.cis-login) :is(a,button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 1199px) {
  .cis-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cis-search-trigger { min-width: 0; }
  .cis-search-trigger kbd { display: none; }
}
@media (max-width: 991px) {
  .cis-admin .app-content { padding: 20px; }
  .cis-admin .app-header.cis-topbar { padding: 0 20px; gap: 12px; }
  .cis-admin.sidebar-open { overflow: hidden; }
  .cis-admin .app-sidebar { max-width: calc(100vw - 40px); }
  .cis-admin .sidebar-panel { flex: 1; width: auto; }
  .cis-login-shell { grid-template-columns: 1fr; }
  .cis-login-story { display: none; }
  .cis-login-form-panel { min-height: 100dvh; }
}
@media (max-width: 575px) {
  .cis-admin .app-content { padding: 16px; }
  .cis-admin .app-header.cis-topbar { padding: 0 16px; height: 72px; }
  .cis-topbar-title { flex: 1; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cis-search-trigger { padding: 10px; width: 38px; height: 38px; justify-content: center; }
  .cis-search-trigger span { display: none; }
  .cis-admin .app-footer { padding: 16px; flex-wrap: wrap; font-size: 10px; }
  .cis-stat-grid { gap: 10px; }
  .cis-stat { padding: 15px; border-radius: 14px; }
  .cis-stat-number { font-size: 28px; }
  .cis-stat-label { font-size: 11px; }
  .cis-welcome { display: block; }
  .cis-date { display: inline-block; margin-top: 12px; }
  .cis-panel-head,.cis-panel-body { padding: 18px; }
  .cis-admin .widget-body { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
