/* v6: phone-friendly admin tables/toolbars + super admin dashboard polish */
.v6-media{display:flex;align-items:center;min-width:0}
.v6-media .media-title{font-weight:700;word-break:break-word}
.v6-media img.avatar,.v6-media figure.avatar{flex:0 0 auto;object-fit:cover}
.v6-media>div{min-width:0}
@media (max-width:767.98px){
  .main-content{padding-left:12px;padding-right:12px;padding-top:80px}
  .section .section-header{padding:12px 14px;flex-wrap:wrap;height:auto;min-height:0}
  .section .section-header h1{font-size:18px}
  .card .card-header{flex-wrap:wrap;padding:12px 14px;min-height:0}
  .card .card-body{padding:14px}
  .fixed-table-toolbar{display:flex;flex-wrap:wrap;gap:6px}
  .fixed-table-toolbar .bs-bars,.fixed-table-toolbar .columns,.fixed-table-toolbar .search{float:none!important;margin:0!important;width:100%}
  .fixed-table-toolbar .search input{width:100%}
  .fixed-table-container{border:0!important}
  .card-views{display:block}
  .card-views .card-view{display:flex;flex-wrap:wrap;align-items:flex-start;padding:6px 0;border:0}
  .fixed-table-container tbody tr[data-index]{display:block}
  .fixed-table-container,.fixed-table-body{height:auto!important;max-height:none!important;overflow:visible!important}
  .fixed-table-body table,.fixed-table-body tbody{display:block;width:100%}
  tr[data-index],tr[data-index] td,.card-views{height:auto!important;min-height:0!important}
  .table-bordered,.table-bordered td{border:0}
  .table-responsive .card-views{padding:0}
  tr[data-index]{background:#fff;border-radius:12px;box-shadow:0 2px 12px rgba(20,20,60,.08);margin:0 0 12px;padding:10px 12px;display:block;border:0!important}
  tr[data-index] td{display:block;border:0!important;padding:0!important}
  .card-view-title{flex:0 0 32%;max-width:32%;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#98a6ad;font-weight:700;padding-top:3px}
  .card-view-value{flex:1 1 60%;min-width:0;word-break:break-word}
  .card-view-value .d-flex{flex-wrap:wrap;gap:4px}
  .card-view-value .btn{margin:0 4px 4px 0!important}
  .card-view:first-child .card-view-title,.card-view:first-child .card-view-value{flex:1 1 100%;max-width:100%}
  .card-view:first-child .card-view-title{display:none}
  .card-view:last-child{border-top:1px solid #eef0f5;margin-top:6px;padding-top:10px}
  .card-view:last-child .card-view-title{display:none}
  .card-view:last-child .card-view-value{flex:1 1 100%}
  .modal-dialog{margin:.6rem}
  .btn-lg{padding:.6rem 1rem}
  .navbar-bg{height:70px}
}
/* super admin dashboard */
.v6-kpis .v6-kpi{display:flex;align-items:center;background:#fff;border-radius:14px;padding:16px;box-shadow:0 2px 14px rgba(20,20,60,.06);margin-bottom:16px;height:calc(100% - 16px)}
.v6-kpi .ic{width:48px;height:48px;border-radius:12px;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;margin-right:14px;flex:0 0 auto}
.v6-kpi .n{font-size:24px;font-weight:800;line-height:1.1}.v6-kpi .l{color:#6c757d;font-size:12px;text-transform:uppercase;letter-spacing:.4px}
.v6-quick a{display:flex;align-items:center;background:#fff;border-radius:12px;padding:12px 14px;margin-bottom:10px;color:#34395e;font-weight:600;box-shadow:0 2px 10px rgba(20,20,60,.05)}
.v6-quick a i{width:34px;height:34px;border-radius:9px;background:rgba(103,119,239,.12);color:#6777ef;display:flex;align-items:center;justify-content:center;margin-right:12px}
.v6-attn .item{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #f0f1f6}
.v6-attn .item:last-child{border:0}
.v6-media>img{width:48px;height:48px;border-radius:50%;object-fit:cover;margin-right:12px;flex:0 0 auto;font-size:0}
@media (max-width:767.98px){.card-view:first-child .card-view-title{display:none!important}}

/* v28: My Cards / vCards list on phones - labelled rows (label left, value right). The Action buttons sit to the RIGHT of the "Action" label, on the same line. */
@media (max-width:767.98px){
  #cards_list .card-views{display:block}
  #cards_list .card-views .card-view{display:flex;flex-wrap:nowrap;align-items:flex-start;width:100%;padding:6px 0;border:0}
  #cards_list .card-views .card-view:first-child{display:block}
  #cards_list .card-views .card-view:not(:first-child) .card-view-title{display:block!important;flex:0 0 32%;max-width:32%;padding-top:3px}
  #cards_list .card-views .card-view .card-view-value{display:block;flex:1 1 auto;min-width:0;word-break:normal;overflow-wrap:anywhere;writing-mode:horizontal-tb;text-orientation:mixed}
  #cards_list .card-views .card-view .card-view-value *{writing-mode:horizontal-tb;text-orientation:mixed;word-break:normal}
  #cards_list .card-views .card-view:last-child{align-items:center;border-top:1px solid #eef0f5;margin-top:6px;padding-top:10px}
  #cards_list .card-views .card-view:last-child .card-view-value{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:1 1 auto}
  #cards_list .card-views .card-view:last-child .custom-switch{margin:0 4px 0 0;min-width:0}
  #cards_list .card-views .card-view:last-child .btn{width:40px;height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;margin:0}
}

/* v25: half logo stays sharp in the collapsed menu (fixed square, never stretched) */
.main-sidebar .sidebar-brand.sidebar-brand-sm img.navbar-logos{width:40px;height:40px;max-width:40px;max-height:40px;padding:0;object-fit:contain;image-rendering:auto}
body.sidebar-mini .main-sidebar .sidebar-brand-sm a{display:flex;align-items:center;justify-content:center;height:100%}

/* v26: heading button (Create) never overlaps the title on phones */
.section-header h1 .btn{white-space:nowrap;vertical-align:middle;margin-left:8px;line-height:1.4}
@media (max-width:575.98px){.section-header h1{display:flex;align-items:center;flex-wrap:wrap;gap:6px 0}}
.section-header h1 .btn.btn-sm{display:inline-flex;align-items:center;gap:6px;height:auto;padding:6px 12px}

/* v26: profile switcher in the menu */
.v26-sw{padding:6px 16px 10px}.v26-sw label{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.7;margin:0 0 4px}
.v26-sw select{width:100%;height:40px;border:1px solid #e5e7eb;border-radius:12px;padding:0 10px;background:#fff;color:#111;font-size:14px;font-weight:600}
