/* ---------- GUI shell layout ---------- */
.gui-shell{ 
  display: flex;
  gap: 14px;
  padding: 14px;
} 
.gui-shell.sidebar-collapsed{
  gap: 0;
  padding: 0; 
} 
/* Override Bulma container */
.container{
  margin: 0 !important;
}
/* Override Bulma container padding when sidebar collapsed */
.sidebar-collapsed .container.is-fluid,
.sidebar-collapsed #wrapper,
.sidebar-collapsed #content{
  padding-left: 10px !important;
  padding-right: 10px !important;
  max-width: 100% !important;
}
.gui-sidebar{
  width: 280px;
  min-width: 280px;
  transition: width .2s ease, transform .2s ease;
}
.gui-sidebar.is-collapsed{
  width: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: none;
}
.sidebar-collapsed .gui-main{
  flex: 1;
}
.gui-main{
  flex: 1;
  min-width: 0;
} 
.gui-top-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

/* ---------- sidebar menu ---------- */
.gui-sidebar .menu-list a{
  font-size: 13px;
  padding: 6px 10px;
}
.gui-sidebar .menu-label{
  font-size: 11px;
}

/* ---------- surfaces / panels / dashboard helpers ---------- */
.bx-surface{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.bx-hover:hover{ box-shadow: var(--sh-md); }
.bx-pad{ padding: 14px; }
.bx-row{ display:flex; gap:12px; flex-wrap:wrap; }
.bx-pill{ border-radius: var(--r-pill) !important; }
.bx-muted{ color: var(--text-2) !important; }

.bx-stat{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md); 
  box-shadow: var(--sh-sm);
  padding: 14px 16px;
  min-width: 140px;
}
.bx-stat .icon{
  width: 42px; 
  height: 42px; 
  border-radius: var(--r-sm);    
  align-items: center; 
  justify-content: center; 
  font-size: 18px;
  color: #fff; 
  margin-bottom: 10px;
}
.bx-stat .icon.bg-brand{ background: var(--brand); }
.bx-stat .icon.bg-accent{ background: var(--accent); }
.bx-stat .icon.bg-ok{ background: var(--ok); }
.bx-stat .icon.bg-warn{ background: var(--warn); }
.bx-stat .icon.bg-bad{ background: var(--bad); }
.bx-stat .icon.bg-purple{ background: #8b5cf6; }
.bx-stat .icon.bg-orange{ background: #f97316; }
.bx-stat .label{ color: var(--text-2); font-size: 11px; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.bx-stat .value{ font-size: 28px; font-weight: 700; color: var(--heading); }

/* ---------- dashboard panels ---------- */
.bx-panel{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
.bx-panel .panel-header{
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bx-panel .panel-header i{
  font-size: 14px;
  opacity: 0.9;
}
.bx-panel .panel-body{
  padding: 14px;
}
.bx-panel.panel-accent .panel-header{ background: var(--accent); }
.bx-panel.panel-ok .panel-header{ background: var(--ok); }
.bx-panel.panel-warn .panel-header{ background: var(--warn); color: #111827; }
.bx-panel.panel-bad .panel-header{ background: var(--bad); }
.bx-panel.panel-purple .panel-header{ background: #8b5cf6; }

/* ---------- module cards (werkplek) ---------- */
.bx-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.bx-card:hover{
  box-shadow: var(--sh-md);
  border-color: var(--brand);
}
.bx-card .card-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bx-card .card-icon{
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.bx-card .card-icon.bg-brand{ background: var(--brand); }
.bx-card .card-icon.bg-accent{ background: var(--accent); }
.bx-card .card-icon.bg-ok{ background: var(--ok); }
.bx-card .card-icon.bg-warn{ background: var(--warn); }
.bx-card .card-icon.bg-bad{ background: var(--bad); }
.bx-card .card-icon.bg-purple{ background: #8b5cf6; }
.bx-card .card-icon.bg-orange{ background: #f97316; }
.bx-card .card-title{
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
}
.bx-card .card-body{
  flex: 1;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.5;
}
.bx-card .card-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bx-card .card-actions .btn{
  font-size: 12px;
  padding: 6px 12px;
}

/* grid for cards */
.bx-grid{
  display: grid;
  gap: 16px;
}
.bx-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.bx-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.bx-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px){
  .bx-grid.cols-3, .bx-grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px){
  .bx-grid.cols-2, .bx-grid.cols-3, .bx-grid.cols-4{ grid-template-columns: 1fr; }
}

/* section title */
.bx-section-title{
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bx-section-title i{ color: var(--brand); }

/* ---------- navbar ---------- */
.navbar{ 
  background: var(--brand);
  box-shadow: var(--sh-sm);
}
.navbar .navbar-item, .navbar .navbar-link{ color: #fff; }
.navbar .navbar-item:hover, .navbar .navbar-link:hover{
  background: rgba(255,255,255,.10);
  color:#fff;
}

/* navbar dropdown */
.navbar-dropdown{ 
  border-radius: var(--r-sm); 
  overflow: hidden;
  padding: 4px 0;
  min-width: 160px;
}
.navbar-dropdown .navbar-item{
  padding: 4px 10px;
  font-size: 13px;
  color: var(--text) !important;
}
.navbar-dropdown .navbar-item:hover{
  background: #0398c8 !important;
  color: #fff !important;
}
.navbar-dropdown .navbar-divider{
  margin: 4px 0;
  background: var(--border);
}

/* active dropdown parent */
.navbar-item.has-dropdown.is-active > .navbar-link,
.navbar-item.has-dropdown:hover > .navbar-link{
  background: #0398c8 !important;
  color: #fff !important;
}

/* ---------- boxtitle ---------- */
.boxtitle{
  padding: 10px 12px;
  margin: 10px 0 12px; 
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.boxtitle .subtitle{ color: var(--heading); font-weight: 700; }
.boxtitle i{ color: var(--brand); }

/* ---------- forms ---------- */

/* div.label (legacy Buster pattern) */
div.label,
.label,
label{
  color: var(--text);
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 6px;
  margin-top: 10px;
  display: block;
  letter-spacing: 0.02em;
}

/* legend (section headers in forms) */
div.legend,
.legend{
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  margin-top: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend:first-child{
  margin-top: 0;
}
.legend i{
  font-size: 14px;
  opacity: 0.85;
}

/* inputs */
.input, 
input.input{
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  height: 32px;
  padding: 5px 8px;
  font-size: 13px;
  margin-bottom: 6px;
}
.input:focus,
input.input:focus{
  border-color: var(--accent) !important;
}
.input::placeholder{ color: var(--text-2); }

/* textarea */
textarea.input,
.textarea{
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  height: auto;
  min-height: 70px;
  padding: 6px 8px;
  font-size: 13px;
  margin-bottom: 6px;
  vertical-align: top;
}
textarea.smallEditor{
  min-height: 100px;
}
textarea::placeholder{ color: var(--text-2); }

/* select (native) */
.buster-select,
select.buster-select{
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  height: 32px;
  width: 100%;
  padding: 4px 8px;
  font-size: 13px;
  margin-bottom: 6px;
}

/* select2 */
.buster-select2,
select.buster-select2{
  width: 100%;
  margin-bottom: 6px;
}

/* radio wrapper (legacy pattern) */
.radiodiv{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  height: 32px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.radiodiv label.radio{
  margin: 0;
  font-size: 13px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.radiodiv input[type="radio"]{
  height: auto;
  margin: 0;
}

/* checkbox styling */
label.checkbox{
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
label.checkbox input[type="checkbox"]{
  margin: 0;
}

/* standalone radio */
label.radio{
  font-size: 13px;
  color: var(--text);
  margin-right: 12px;
}

.control.has-icons-left .icon,
.control.has-icons-right .icon{ color: var(--text-2); }

/* ---------- tables (CRUD lists) ---------- */

.hidden{ display: none; }

.table{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
}
.table thead th{
  background: var(--surface-2);
  color: var(--heading);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
}
.table td, .table th{
  vertical-align: middle;
  padding: 8px 10px;
  line-height: 1.4;
  border-top: 1px solid var(--border);
}
.table thead:first-child tr:first-child th,
.table thead:first-child tr:first-child td{
  border-top: 0;
}

/* table-hover */
.table.table-hover tbody tr:hover{
  background: rgba(0,113,188,.06);
}

/* table-condensed / table-compact (legacy) */
.table.table-condensed td,
.table.table-condensed th,
.table.table-compact td,
.table.table-compact th{
  padding: 5px 8px;
}

/* table-bordered (legacy) */
.table.table-bordered{
  border: 1px solid var(--border);
}
.table.table-bordered td,
.table.table-bordered th{
  border: 1px solid var(--border);
}
.table.table-bordered thead th,
.table.table-bordered thead td{
  border-bottom-width: 2px;
}

/* table-striped (legacy) */
.table.table-striped tbody tr:nth-of-type(odd){
  background: var(--surface-2);
}

/* table-responsive wrapper */
.table-responsive{
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* font-size variants (legacy) */
.table.table-85{ font-size: 85%; }
.table.table-80{ font-size: 80%; }
.table.table-75{ font-size: 75%; }
.table.table-sm{ font-size: 80%; }
.table.table-xs{ font-size: 75%; }

/* drag handle */
td.drag{ width: 34px; text-align:center; cursor: grab; color: var(--text-2); }
td.drag:active{ cursor: grabbing; }

/* editable cell (legacy) */
td.editTd:hover{
  color: var(--brand);
  cursor: pointer;
}
td.editTd:hover:after{
  content: '\f040';
  font-weight: 400;
  font-family: 'Font Awesome 5 Pro';
  padding: 0 6px;
  font-size: 75%;
}

/* optional selected row */
tr.is-selected, tr.row-selected{
  background: rgba(22,163,74,.14) !important;
}

/* ---------- button system (backward compatible) ---------- */
button, .button{
  border-radius: var(--r-sm) !important;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
button:active, .button:active{ transform: translateY(1px); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 8px 10px;
  min-height: 34px;
  background: var(--surface);
  color: var(--text);
} 
  
.btn-color{
 display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border) !important;
  padding: 4px;
  min-height: 24px;
  min-width: 24px;} 
/* primary */
.btn-blue, .btn-coo, .btn-insert, .btn-form{
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  box-shadow: var(--sh-sm) !important;
}
.btn-blue:hover, .btn-coo:hover, .btn-insert:hover, .btn-form:hover{
  background: var(--brand-2) !important;
  border-color: var(--brand-2) !important;
  box-shadow: var(--sh-md) !important;
}
  
/* semantic */ 
.btn-green{ background: var(--ok) !important; border-color: var(--ok) !important; color:#fff !important; }
.btn-red{ background: var(--bad) !important; border-color: var(--bad) !important; color:#fff !important; }
.btn-orange{ background: var(--warn) !important; border-color: var(--warn) !important; color:#111827 !important; }
.btn-yellow{ background: var(--yellow) !important; border-color: var(--yellow); color:#111827 !important; }

/* Bulma is-info override */
.is-info, .button.is-info, .tag.is-info, .notification.is-info{
  background-color: #0398c8 !important;
}
.has-text-info{ color: #0398c8 !important; }
.has-background-info{ background-color: #0398c8 !important; }

/* neutral */
.btn-white, .btn-default, .btn-back{
  background: var(--surface) !important; 
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.btn-white:hover, .btn-default:hover, .btn-back:hover{
  background: var(--surface-2) !important;
}
.btn-back:before{
  content: '\f053';
  font-weight: 400;
  font-family: 'Font Awesome 5 Pro';
  margin-right: 4px;
  color: var(--text);
}
 


/* icon-only table actions */
.btn-edit, .btn-delete, .btn-view, .btn-link, .btn-mail, .btn-detail{
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.btn-edit:hover{ border-color: rgba(22,163,74,.45) !important; box-shadow: var(--sh-sm); }
.btn-delete:hover{ border-color: rgba(239,68,68,.45) !important; box-shadow: var(--sh-sm); }

/* Builder button - drafting compass icon */
.btn-builder{
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: #3273dc !important;
  border-radius: 4px;
  cursor: pointer;
}
.btn-builder:hover{ border-color: rgba(50,115,220,.45) !important; box-shadow: var(--sh-sm); }
.btn-builder:after{ content:'\f568'; font-family:'Font Awesome 5 Pro'; font-weight: 300; }

/* Clone button - same style as other action buttons but with blue icon */
.btn-clone{
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: #3273dc !important;
  border-radius: 4px;
  cursor: pointer;
}
.btn-clone:hover{ border-color: rgba(50,115,220,.45) !important; box-shadow: var(--sh-sm); }
.btn-clone:after{ content:'\f0c5'; font-family:'Font Awesome 5 Pro'; font-weight: 300; }

/* Delete sjabloon button - same style but with red icon */
.btn-delete-sjabloon{
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: #ff3860 !important;
  border-radius: 4px;
  cursor: pointer;
}
.btn-delete-sjabloon:hover{ border-color: rgba(255,56,96,.45) !important; box-shadow: var(--sh-sm); }
.btn-delete-sjabloon:after{ content:'\f1f8'; font-family:'Font Awesome 5 Pro'; font-weight: 300; }

/* Compact buttons for table-75 */
.table-75 .btn, .table-75 .button{
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  font-size: 11px !important;
}
.table-75 .btn i, .table-75 .button i{
  font-size: 11px !important;
}
.table-75 td{
  padding: 4px 6px !important;
  font-size: 12px !important;
}

/* Compact buttons for table-50 (extra compact) */
.table-50 .btn, .table-50 .button{
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  font-size: 10px !important;
}
.table-50 .btn i, .table-50 .button i{
  font-size: 10px !important;
}
.table-50 td{
  padding: 2px 4px !important;
  font-size: 11px !important;
}
.table-50 th{
  padding: 4px 4px !important;
  font-size: 11px !important;
}

button i, .button i{ color: inherit; }

/* ---------- Font Awesome icon spacing ---------- */
/* Padding tussen FA icons en tekst in buttons, tags, spans */
.btn i:first-child,
.button i:first-child,
.tag i:first-child,
span i:first-child,
strong i:first-child,
a i:first-child,
label i:first-child{ margin-right: 6px; }

.btn i:last-child:not(:first-child),
.button i:last-child:not(:first-child),
.tag i:last-child:not(:first-child),
span i:last-child:not(:first-child){ margin-left: 6px; }

/* FA icons in algemene context */
i.fas + span,
i.far + span,
i.fal + span,
i.fab + span,
i.fa + span{ margin-left: 6px; }

span + i.fas,
span + i.far,
span + i.fal,
span + i.fab,
span + i.fa{ margin-left: 6px; }

/* ---------- FA5 pseudo-icons (keep your existing pattern) ---------- */
.btn-insert:before{ content:'\f0fe'; font-family:'Font Awesome 5 Pro'; font-weight: 400; }
.btn-insert:after{ content:' Voeg toe'; font-family: var(--font); font-weight: 600; }

.btn-form:before{ content:'\f0fe'; font-family:'Font Awesome 5 Pro'; font-weight: 400; }
.btn-form:after{ content:' Voeg toe'; font-family: var(--font); font-weight: 600; }

.btn-edit:after{ content:'\f040'; font-family:'Font Awesome 5 Pro'; font-weight: 300; }
.btn-delete:after{ content:'\f1f8'; font-family:'Font Awesome 5 Pro'; font-weight: 300; }
.btn-view:after{ content:'\f06e'; font-family:'Font Awesome 5 Pro'; font-weight: 300; }
.btn-link:after{ content:'\f0c1'; font-family:'Font Awesome 5 Pro'; font-weight: 300; }
.btn-mail:after{ content:'\f1d8'; font-family:'Font Awesome 5 Pro'; font-weight: 300; }
.btn-detail:after{ content:'\f05a'; font-family:'Font Awesome 5 Pro'; font-weight: 400; }

/* ---------- dropzone / file upload ---------- */
.bx-dropzone{
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 40px 20px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: all .2s ease;
}
.bx-dropzone:hover,
.bx-dropzone.dragover{
  border-color: var(--brand);
  background: rgba(0,113,188,.05);
}
.bx-dropzone .dropzone-content i{
  font-size: 48px;
  color: var(--brand);
  margin-bottom: 12px;
}
.bx-dropzone .dropzone-content p{
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
}
.bx-dropzone .dropzone-content span{
  font-size: 12px;
  color: var(--text-2);
}
.bx-dropzone input[type="file"]{
  display: none;
}

/* file list */
.bx-file-list{
  margin-top: 12px;
}
.bx-file-list .file-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
}
.bx-file-list .file-item i{
  color: var(--brand);
}
.bx-file-list .file-item .file-name{
  flex: 1;
  font-size: 13px;
  color: var(--text);
}
.bx-file-list .file-item .file-size{
  font-size: 11px;
  color: var(--text-2);
}
.bx-file-list .file-item .file-remove{
  color: var(--bad);
  cursor: pointer;
}

/* file grid */
.bx-file-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bx-file-grid .file-item{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  text-align: center;
}
.bx-file-grid .file-icon{
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 22px;
}
.bx-file-grid .file-icon.pdf{ background: rgba(239,68,68,.12); color: #ef4444; }
.bx-file-grid .file-icon.excel{ background: rgba(22,163,74,.12); color: #16a34a; }
.bx-file-grid .file-icon.word{ background: rgba(59,130,246,.12); color: #3b82f6; }
.bx-file-grid .file-icon.image{ background: rgba(139,92,246,.12); color: #8b5cf6; }
.bx-file-grid .file-icon.zip{ background: rgba(245,158,11,.12); color: #f59e0b; }
.bx-file-grid .file-icon.generic{ background: rgba(107,114,128,.12); color: #6b7280; }
.bx-file-grid .file-name{
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bx-file-grid .file-size{
  font-size: 11px;
  color: var(--text-2);
}

/* image preview */
.bx-image-preview{
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bx-image-preview img{
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.bx-image-preview .preview-placeholder{
  text-align: center;
  color: var(--text-2);
}
.bx-image-preview .preview-placeholder i{
  font-size: 48px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* upload progress items */
.bx-upload-item{
  margin-bottom: 12px;
}
.bx-upload-item .upload-info{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.bx-upload-item .upload-info i{
  color: var(--brand);
}
.bx-upload-item .upload-info span:first-of-type{
  flex: 1;
  color: var(--text);
}
.bx-upload-item .upload-status{
  font-size: 11px;
  font-weight: 600;
}
.bx-upload-item .upload-status.success{ color: var(--ok); }
.bx-upload-item .upload-status.uploading{ color: var(--brand); }
.bx-upload-item .upload-status.pending{ color: var(--text-2); }
.bx-upload-item .upload-status.error{ color: var(--bad); }

/* ---------- wizard / stepper ---------- */
.bx-wizard-progress{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding: 20px 0;
}
.bx-wizard-progress .wizard-step{
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.bx-wizard-progress .step-number{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-2);
  transition: all .3s ease;
}
.bx-wizard-progress .step-label{
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.bx-wizard-progress .wizard-step.active .step-number{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.bx-wizard-progress .wizard-step.active .step-label{
  color: var(--brand);
  font-weight: 600;
}
.bx-wizard-progress .wizard-step.completed .step-number{
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.bx-wizard-progress .wizard-step.completed .step-label{
  color: var(--ok);
}
.bx-wizard-progress .wizard-connector{
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 10px;
  margin-bottom: 20px;
}
.bx-wizard-progress .wizard-step.completed + .wizard-connector{
  background: var(--ok);
}

/* wizard content */
.bx-wizard-content{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  min-height: 300px;
}
.bx-wizard-content .wizard-panel{
  display: none;
}
.bx-wizard-content .wizard-panel.active{
  display: block;
}
.bx-wizard-content .wizard-title{
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.bx-wizard-content .wizard-title i{
  color: var(--brand);
  margin-right: 8px;
}

/* wizard complete */
.wizard-complete{
  text-align: center;
  padding: 40px 20px;
}
.wizard-complete .complete-icon{
  font-size: 72px;
  color: var(--ok);
  margin-bottom: 20px;
}
.wizard-complete h3{
  font-size: 24px;
  color: var(--heading);
  margin-bottom: 10px;
}
.wizard-complete p{
  color: var(--text);
}

/* wizard navigation */
.bx-wizard-nav{
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* summary */
.bx-summary{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px;
}
.bx-summary .summary-row{
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.bx-summary .summary-row:last-child{
  border-bottom: none;
}
.bx-summary .summary-label{
  width: 120px;
  font-weight: 600;
  color: var(--text-2);
  font-size: 13px;
}
.bx-summary .summary-value{
  flex: 1;
  color: var(--text);
  font-size: 13px;
}

/* ---------- calendar ---------- */
.bx-calendar{
  background: var(--surface);
}
.bx-calendar .calendar-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--heading);
}
.bx-calendar .btn-cal-nav{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--text);
}
.bx-calendar .btn-cal-nav:hover{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.bx-calendar .calendar-weekdays{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.bx-calendar .calendar-days{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.bx-calendar .calendar-days span{
  padding: 6px;
  font-size: 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
}
.bx-calendar .calendar-days span:hover{
  background: var(--surface-2);
}
.bx-calendar .calendar-days span.other-month{
  color: var(--text-2);
  opacity: 0.5;
}
.bx-calendar .calendar-days span.today{
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.bx-calendar .calendar-days span.has-event{
  position: relative;
}
.bx-calendar .calendar-days span.has-event::after{
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* event list */
.bx-event-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bx-event-list .event-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.bx-event-list .event-date{
  text-align: center;
  min-width: 50px;
}
.bx-event-list .event-date .day{
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.bx-event-list .event-date .month{
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
}
.bx-event-list .event-details{
  flex: 1;
}
.bx-event-list .event-title{
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
}
.bx-event-list .event-meta{
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-2);
}
.bx-event-list .event-meta i{
  margin-right: 4px;
}
.bx-event-list .event-badge{
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.bx-event-list .event-badge.urgent{
  background: var(--bad);
  color: #fff;
  border-color: var(--bad);
}
.bx-event-list .event-badge.info{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* timeline */
.bx-timeline{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
}
.bx-timeline .timeline-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  position: relative;
}
.bx-timeline .timeline-item::after{
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.bx-timeline .timeline-item:last-child::after{
  display: none;
}
.bx-timeline .timeline-marker{
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  z-index: 1;
  margin-bottom: 8px;
}
.bx-timeline .timeline-item.completed .timeline-marker{
  background: var(--ok);
  border-color: var(--ok);
}
.bx-timeline .timeline-item.active .timeline-marker{
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,113,188,.2);
}
.bx-timeline .timeline-content{
  text-align: center;
}
.bx-timeline .timeline-time{
  font-size: 12px;
  font-weight: 600;
  color: var(--heading);
}
.bx-timeline .timeline-title{
  font-size: 11px;
  color: var(--text-2);
}

/* ---------- user cards ---------- */
.bx-user-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 1024px){
  .bx-user-grid{ grid-template-columns: 1fr; }
}
.user-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.user-card.inactive{
  opacity: 0.6;
}
.user-card .user-avatar{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.user-card .user-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-card .user-info{
  flex: 1;
  min-width: 0;
}
.user-card .user-name{
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card .user-role{
  font-size: 12px;
  color: var(--text-2);
}
.user-card .user-badges{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.user-card .badge{
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.user-card .badge.admin{ background: var(--bad); color: #fff; }
.user-card .badge.moderator{ background: var(--warn); color: #111; }
.user-card .badge.user{ background: var(--brand); color: #fff; }
.user-card .badge.viewer{ background: var(--text-2); color: #fff; }
.user-card .badge.active{ background: rgba(22,163,74,.15); color: var(--ok); }
.user-card .badge.inactive{ background: rgba(245,158,11,.15); color: var(--warn); }
.user-card .user-actions{
  display: flex;
  gap: 6px;
}

/* role list */
.bx-role-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bx-role-list .role-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.bx-role-list .role-badge{
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--r-sm);
  min-width: 80px;
  text-align: center;
}
.bx-role-list .role-badge.admin{ background: var(--bad); color: #fff; }
.bx-role-list .role-badge.moderator{ background: var(--warn); color: #111; }
.bx-role-list .role-badge.user{ background: var(--brand); color: #fff; }
.bx-role-list .role-badge.viewer{ background: var(--text-2); color: #fff; }
.bx-role-list .role-desc{
  flex: 1;
  font-size: 12px;
  color: var(--text);
}
.bx-role-list .role-count{
  font-weight: 700;
  color: var(--heading);
}

/* stat mini */
.bx-stat-mini .stat-row{
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.bx-stat-mini .stat-row:last-child{
  border-bottom: none;
}
.bx-stat-mini .stat-label{
  font-size: 13px;
  color: var(--text);
}
.bx-stat-mini .stat-value{
  font-weight: 700;
  color: var(--heading);
}
.bx-stat-mini .stat-value.text-ok{ color: var(--ok); }
.bx-stat-mini .stat-value.text-warn{ color: var(--warn); }
.bx-stat-mini .stat-value.text-bad{ color: var(--bad); }

/* text color helpers */
.text-brand{ color: var(--brand) !important; }
.text-ok{ color: var(--ok) !important; }
.text-warn{ color: var(--warn) !important; }
.text-bad{ color: var(--bad) !important; }

/* ---------- to-do list ---------- */
.bx-todo-form{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 16px;
}
.bx-todo-form .field{
  margin-bottom: 8px;
}
.bx-todo-form .field:last-child{
  margin-bottom: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.bx-todo-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--border);
  transition: all .2s ease;
}
.todo-item:hover{
  box-shadow: var(--sh-sm);
}
.todo-item.priority-high{
  border-left-color: var(--bad);
}
.todo-item.priority-medium{
  border-left-color: var(--warn);
}
.todo-item.priority-low{
  border-left-color: var(--ok);
}
.todo-item.completed{
  opacity: 0.6;
  background: var(--surface-2);
}
.todo-item.completed .todo-title{
  text-decoration: line-through;
  color: var(--text-2);
}

/* checkbox */
.todo-checkbox{
  position: relative;
  cursor: pointer;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.todo-checkbox input{
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.todo-checkbox .checkmark{
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  transition: all .2s ease;
}
.todo-checkbox:hover .checkmark{
  border-color: var(--brand);
}
.todo-checkbox input:checked ~ .checkmark{
  background: var(--ok);
  border-color: var(--ok);
}
.todo-checkbox .checkmark:after{
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.todo-checkbox input:checked ~ .checkmark:after{
  display: block;
}

/* content */
.todo-content{
  flex: 1;
  min-width: 0;
}
.todo-title{
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
}
.todo-meta{
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-2);
}
.todo-meta i{
  margin-right: 4px;
}
.todo-meta .priority{
  font-weight: 600;
}
.todo-meta .priority.high{ color: var(--bad); }
.todo-meta .priority.medium{ color: var(--warn); }
.todo-meta .priority.low{ color: var(--ok); }

/* actions */
.todo-actions{
  display: flex;
  gap: 6px;
}
.todo-actions .btn-sm{
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.todo-actions .btn-sm:hover{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.todo-actions .btn-delete-todo:hover{
  background: var(--bad);
  border-color: var(--bad);
}

/* filters */
.bx-todo-filters{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bx-todo-filters .filter-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: all .2s ease;
}
.bx-todo-filters .filter-btn:hover{
  background: var(--surface-2);
}
.bx-todo-filters .filter-btn.active{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.bx-todo-filters .filter-btn.active i{
  color: #fff;
}

/* ---------- navbar badges & dropdowns ---------- */
.bx-nav-icon{
  position: relative;
  padding: 0 12px !important;
}
.bx-nav-icon::after{
  display: none !important;
}
.bx-nav-icon i{
  font-size: 18px;
  color: #fff;
}
.bx-badge{
  position: absolute;
  top: 8px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--bad);
  color: #fff;
  border-radius: var(--r-pill);
}
.bx-badge-warn{
  background: var(--warn);
  color: #111;
}

/* messages dropdown */
.bx-messages-dropdown,
.bx-todos-dropdown{
  width: 320px;
  padding: 0 !important;
}
.bx-messages-dropdown .dropdown-header,
.bx-todos-dropdown .dropdown-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.bx-messages-dropdown .dropdown-header strong,
.bx-todos-dropdown .dropdown-header strong{
  font-size: 13px;
  color: var(--heading);
}
.bx-messages-dropdown .dropdown-header a,
.bx-todos-dropdown .dropdown-header a{
  font-size: 12px;
  color: var(--brand);
}
.bx-messages-dropdown .dropdown-footer,
.bx-todos-dropdown .dropdown-footer{
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  text-align: center;
}
.bx-messages-dropdown .dropdown-footer a,
.bx-todos-dropdown .dropdown-footer a{
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
}

/* message item */
.bx-message-item{
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--border);
}
.bx-message-item:last-of-type{
  border-bottom: none;
}
.bx-message-item.unread{
  background: rgba(3,152,200,.05);
}
.bx-message-item .msg-avatar{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.bx-message-item .msg-content{
  flex: 1;
  min-width: 0;
}
.bx-message-item .msg-sender{
  font-weight: 600;
  font-size: 13px;
  color: var(--heading);
}
.bx-message-item .msg-preview{
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bx-message-item .msg-time{
  font-size: 10px;
  color: var(--text-2);
  margin-top: 2px;
}

/* todo dropdown item */
.bx-todos-dropdown .bx-todo-item{
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text) !important;
}
.bx-todos-dropdown .bx-todo-item:last-of-type{
  border-bottom: none;
}
.bx-todos-dropdown .bx-todo-item i{
  flex-shrink: 0;
}
.bx-todos-dropdown .bx-todo-item span{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- comment list ---------- */
.bx-comment-list{
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.bx-comment-list .comment-item{
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.bx-comment-list .comment-item:last-child{
  border-bottom: none;
}
.bx-comment-list .comment-avatar{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.bx-comment-list .comment-content{
  flex: 1;
  min-width: 0;
}
.bx-comment-list .comment-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.bx-comment-list .comment-author{
  font-weight: 600;
  font-size: 13px;
  color: var(--heading);
}
.bx-comment-list .comment-time{
  font-size: 11px;
  color: var(--text-2);
}
.bx-comment-list .comment-text{
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
