/* JMT Farm — AdminLTE 4.9.1 integration layer */
:root,[data-bs-theme=light]{
 --primary:var(--bs-primary);--primary-soft:rgba(13,110,253,.10);--success:var(--bs-success);--success-soft:rgba(25,135,84,.10);--warning:var(--bs-warning);--warning-soft:rgba(255,193,7,.14);--danger:var(--bs-danger);--danger-soft:rgba(220,53,69,.10);
 --bg-card:var(--bs-body-bg);--surface:var(--bs-body-bg);--bg-muted:var(--bs-tertiary-bg);--border:var(--bs-border-color);--border-soft:var(--bs-border-color-translucent);--t-base:var(--bs-body-color);--t-muted:var(--bs-secondary-color);--t-light:var(--bs-secondary-color);--muted:var(--bs-secondary-color);--shadow-sm:0 .125rem .25rem rgba(0,0,0,.075);--shadow-lg:0 1rem 3rem rgba(0,0,0,.175)
}
[data-bs-theme=dark]{--primary-soft:rgba(13,110,253,.18);--success-soft:rgba(25,135,84,.18);--warning-soft:rgba(255,193,7,.18);--danger-soft:rgba(220,53,69,.18)}
html,body{min-height:100%}.app-content{padding-bottom:1.25rem}.app-content-header{padding:.85rem 0}.app-content-header h3{font-size:1.25rem;font-weight:600}.breadcrumb{font-size:.82rem}
.jmt-brand-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:.45rem;background:var(--bs-primary);color:#fff;font-size:.72rem;font-weight:800;margin-right:.55rem}.brand-link{display:flex!important;align-items:center}.brand-text{font-size:1rem}
.app-sidebar .nav-header{font-size:.68rem;letter-spacing:.08em}.sidebar-menu .nav-link p{font-size:.88rem}.sidebar-menu .nav-treeview .nav-link p{font-size:.82rem}.sidebar-menu .nav-treeview .nav-icon{font-size:.45rem!important}
.jmt-admin-avatar{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--bs-primary);color:#fff;font-size:.7rem;font-weight:800}.jmt-admin-avatar-lg{width:64px;height:64px;font-size:1rem}.jmt-admin-user-menu .dropdown-menu,.jmt-theme-menu .dropdown-menu{display:none}.jmt-admin-user-menu.is-open .dropdown-menu,.jmt-theme-menu.is-open .dropdown-menu{display:block}.jmt-admin-user-menu .user-header{padding:1.25rem;text-align:center}.jmt-admin-user-menu .user-header small{opacity:.8}.navbar-badge{font-size:.55rem;right:2px;top:2px}

/* Page heading compatibility */
.hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;margin-bottom:1rem;background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-left:4px solid var(--bs-primary);border-radius:var(--bs-border-radius-lg);box-shadow:var(--bs-box-shadow-sm)}.hero-title{display:none}.hero .eyebrow{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--bs-primary)}.hero-sub{margin:.25rem 0 0;color:var(--bs-secondary-color);font-size:.88rem;line-height:1.5}.hero-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.eyebrow{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--bs-primary)}

/* Cards and KPI */
.card{border-color:var(--bs-border-color);box-shadow:var(--bs-box-shadow-sm);margin-bottom:1rem}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.kpi-card,.report-card,.chart-card,.info-box,.quick-card{background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:var(--bs-border-radius-lg);padding:1rem;box-shadow:var(--bs-box-shadow-sm)}.kpi-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--bs-secondary-color);font-weight:600}.kpi-value{font-size:1.5rem;font-weight:700;margin-top:.3rem;color:var(--bs-body-color)}

/* Forms */
.input,.select{display:block;width:100%;padding:.375rem .75rem;font-size:.875rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.select{padding-right:2.25rem}.input:focus,.select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}textarea.input{min-height:2.4rem}.input:disabled,.input[readonly],.select:disabled{background-color:var(--bs-secondary-bg);opacity:1}

/* Buttons: old JMT classes mapped to Bootstrap/AdminLTE */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem}.btn--primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca}.btn--ghost{--bs-btn-color:var(--bs-secondary-color);--bs-btn-bg:transparent;--bs-btn-border-color:var(--bs-border-color);--bs-btn-hover-color:var(--bs-body-color);--bs-btn-hover-bg:var(--bs-tertiary-bg);--bs-btn-hover-border-color:var(--bs-secondary-border-subtle)}.btn--danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37}.btn-sm{font-size:.78rem}
.btn--icon{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--bs-border-color);border-radius:var(--bs-border-radius);background:var(--bs-body-bg);color:var(--bs-secondary-color);text-decoration:none;cursor:pointer;padding:0}.btn--icon:hover{background:var(--bs-tertiary-bg);color:var(--bs-primary)}.btn--icon.danger{color:var(--bs-danger);border-color:rgba(220,53,69,.3)}.btn--icon.success{color:var(--bs-success);border-color:rgba(25,135,84,.3)}.btn--icon.warning{color:#b58105;border-color:rgba(255,193,7,.4)}.btn--icon i{font-size:.9rem}

/* Badges and alerts */
.badge{display:inline-block;padding:.35em .65em;font-size:.72em;font-weight:600;line-height:1;border-radius:var(--bs-border-radius-pill);background:var(--bs-secondary-bg);color:var(--bs-secondary-color)}.badge.success{background:rgba(25,135,84,.14);color:var(--bs-success)}.badge.warning{background:rgba(255,193,7,.18);color:#9a6a00}.badge.danger{background:rgba(220,53,69,.14);color:var(--bs-danger)}.badge.primary{background:rgba(13,110,253,.14);color:var(--bs-primary)}
.jmt-alert,.alert{padding:.75rem 1rem;border-radius:var(--bs-border-radius);margin-bottom:1rem;border:1px solid transparent}.jmt-alert.success{color:var(--bs-success-text-emphasis);background:var(--bs-success-bg-subtle);border-color:var(--bs-success-border-subtle)}.jmt-alert.danger{color:var(--bs-danger-text-emphasis);background:var(--bs-danger-bg-subtle);border-color:var(--bs-danger-border-subtle)}.jmt-alert.warning{color:var(--bs-warning-text-emphasis);background:var(--bs-warning-bg-subtle);border-color:var(--bs-warning-border-subtle)}.jmt-alert.info{color:var(--bs-info-text-emphasis);background:var(--bs-info-bg-subtle);border-color:var(--bs-info-border-subtle)}

/* Tables + AdminLTE DataTable controls */
.jmt-table-wrap,.table-wrap{width:100%;overflow-x:auto}.data-table,.jmt-detail-table{width:100%;margin-bottom:0;color:var(--bs-body-color);vertical-align:middle;border-color:var(--bs-border-color);font-size:.84rem;border-collapse:collapse}.data-table>thead>tr>th,.jmt-detail-table>thead>tr>th{padding:.7rem .75rem;border-bottom:2px solid var(--bs-border-color);background:var(--bs-tertiary-bg);font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:var(--bs-secondary-color);white-space:nowrap}.data-table>tbody>tr>td,.jmt-detail-table>tbody>tr>td{padding:.65rem .75rem;border-bottom:1px solid var(--bs-border-color-translucent)}.data-table>tbody>tr:hover{background:rgba(var(--bs-primary-rgb),.035)}.data-cell-actions{display:flex;align-items:center;gap:.3rem;flex-wrap:wrap}.money{text-align:right;font-variant-numeric:tabular-nums}.jmt-muted{font-size:.75rem;color:var(--bs-secondary-color)}
.jmt-dt{margin-bottom:.6rem}.jmt-dt-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.65rem}.jmt-dt-start,.jmt-dt-end{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.jmt-dt-search{width:min(280px,70vw)}.jmt-dt-info{font-size:.76rem;color:var(--bs-secondary-color)}.jmt-dt-pagination{display:flex;gap:.25rem;align-items:center}.jmt-dt-pagination button{min-width:32px}.jmt-sortable{cursor:pointer;user-select:none}.jmt-sortable::after{content:'\\F282';font-family:'bootstrap-icons';font-size:.65rem;margin-left:.35rem;opacity:.4}.jmt-sortable[data-sort-dir=asc]::after{content:'\\F145';opacity:1}.jmt-sortable[data-sort-dir=desc]::after{content:'\\F124';opacity:1}

/* Standardize legacy JMT modals to AdminLTE/Bootstrap appearance */
.jmt-modal,.jmt-account-modal,.jmt-confirm{position:fixed!important;inset:0!important;z-index:1060!important;display:none!important;align-items:center!important;justify-content:center!important;padding:1rem!important;background:rgba(0,0,0,.52)!important;backdrop-filter:blur(2px)!important}.jmt-modal.is-open,.jmt-account-modal.is-open,.jmt-confirm.is-open{display:flex!important}.jmt-modal-card,.jmt-account-modal__dialog,.jmt-confirm__dialog{position:relative!important;width:min(880px,96vw)!important;max-height:92dvh!important;display:flex!important;flex-direction:column!important;background:var(--bs-body-bg)!important;border:1px solid var(--bs-border-color)!important;border-radius:var(--bs-border-radius-lg)!important;box-shadow:var(--bs-box-shadow-lg)!important;overflow:hidden!important;opacity:1!important}.jmt-modal-card.small{width:min(560px,96vw)!important}.jmt-modal-card.large{width:min(1100px,98vw)!important}.jmt-modal-head,.jmt-account-modal__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid var(--bs-border-color);background:var(--bs-body-bg)}.jmt-modal-head h3,.jmt-account-modal__head h3{font-size:1.05rem;margin:0}.jmt-modal-head>button,.jmt-account-modal__head>button{border:0;background:transparent;font-size:1.35rem;color:var(--bs-secondary-color)}.jmt-modal-body,.jmt-account-modal__body{padding:1.25rem!important;overflow-y:auto!important;background:var(--bs-body-bg)!important}.jmt-modal-foot,.jmt-account-modal__foot{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;padding:.85rem 1.25rem;border-top:1px solid var(--bs-border-color);background:var(--bs-body-bg)}.jmt-modal .jmt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.jmt-modal .jmt-grid .full{grid-column:1/-1}.jmt-modal label{font-size:.85rem;font-weight:600}.jmt-modal label>.input,.jmt-modal label>.select,.jmt-modal label>textarea{margin-top:.35rem}.jmt-account-modal__backdrop,.jmt-confirm__backdrop{position:absolute;inset:0}.jmt-account-modal__dialog,.jmt-confirm__dialog{z-index:1}.jmt-confirm__dialog{width:min(520px,96vw)}.jmt-confirm__icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--bs-warning-bg-subtle);color:var(--bs-warning-text-emphasis);font-size:1.1rem}.jmt-confirm[data-tone=danger] .jmt-confirm__icon{background:var(--bs-danger-bg-subtle);color:var(--bs-danger-text-emphasis)}

/* Common form layouts */
.data-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.data-toolbar-left,.data-toolbar-right{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.jmt-grid,.jmt-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.full{grid-column:1/-1}

/* POS compatibility with new AdminLTE shell */
.is-pos-page{overflow:hidden}.is-pos-page .app-main{height:calc(100dvh - 56px);min-height:0;overflow:hidden}.is-pos-page .app-content-header{display:none}.is-pos-page .app-content{height:100%;min-height:0;padding:.65rem 0;overflow:hidden}.is-pos-page .app-content>.container-fluid{height:100%}.is-pos-page .app-footer{display:none}

/* Login */
.login-page{min-height:100dvh}.login-box{width:min(420px,calc(100vw - 2rem))}.jmt-login-brand-mark{display:inline-grid;place-items:center;width:38px;height:38px;margin-right:.35rem;border-radius:.55rem;background:var(--bs-primary);color:#fff;font-size:.7rem;font-weight:800;vertical-align:middle}

@media(max-width:991.98px){.hero{align-items:flex-start;flex-direction:column}.hero-actions{width:100%}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.app-content-header .breadcrumb{float:none!important;margin-top:.4rem}.jmt-modal{align-items:flex-end;padding:.5rem}.jmt-modal-card,.jmt-modal-card.small,.jmt-modal-card.large{width:100%;max-height:94dvh;border-radius:1rem 1rem 0 0}.jmt-modal .jmt-grid,.jmt-grid,.jmt-form-grid{grid-template-columns:1fr}.full{grid-column:auto}.jmt-dt-toolbar{align-items:stretch}.jmt-dt-start,.jmt-dt-end{width:100%}.jmt-dt-search{width:100%}.data-table{min-width:680px}.kpi-grid{grid-template-columns:1fr}.hero-actions .btn{flex:1 1 auto}}


/* =====================================================================
   JMT Farm v12 — AdminLTE 4.9.1 precision layer
   Based on AdminLTE Cards, Small Box, Info Box and Data Tables examples.
   ===================================================================== */

/* --- Genuine AdminLTE cards across legacy JMT views --- */
.card.jmt-adminlte-card{
  padding:0!important;
  overflow:hidden;
  border-radius:var(--bs-border-radius);
  background:var(--bs-body-bg);
}
.card.jmt-adminlte-card>.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  min-height:3rem;
  padding:.75rem 1rem;
  margin:0!important;
  border-bottom:1px solid var(--bs-border-color);
  background:transparent;
}
.card.jmt-adminlte-card>.card-header>div:first-child{min-width:0}
.card.jmt-adminlte-card>.card-header .eyebrow{display:block;margin-bottom:.15rem}
.card.jmt-adminlte-card>.card-header .card-title,
.card.jmt-adminlte-card>.card-header h1,
.card.jmt-adminlte-card>.card-header h2,
.card.jmt-adminlte-card>.card-header h3,
.card.jmt-adminlte-card>.card-header h4{
  margin:0!important;
  font-size:1rem!important;
  font-weight:600;
  line-height:1.35;
}
.card.jmt-adminlte-card>.card-header .card-tools{display:flex;align-items:center;gap:.25rem;margin-left:auto}
.card.jmt-adminlte-card>.card-body{padding:1rem}
.card.jmt-adminlte-card>.card-body>.data-toolbar:first-child{margin-top:0}
.card.jmt-adminlte-card>.card-body>.table-wrap,
.card.jmt-adminlte-card>.card-body>.jmt-table-wrap{margin-left:0!important;margin-right:0!important}
.card.jmt-adminlte-card>.card-footer{padding:.75rem 1rem;background:var(--bs-tertiary-bg);border-top:1px solid var(--bs-border-color)}
.card.card-outline{border-top-width:3px}
.card.card-outline.card-primary{border-top-color:var(--bs-primary)}
.card.card-outline.card-success{border-top-color:var(--bs-success)}
.card.card-outline.card-warning{border-top-color:var(--bs-warning)}
.card.card-outline.card-danger{border-top-color:var(--bs-danger)}
.card.card-outline.card-info{border-top-color:var(--bs-info)}
.card.card-outline.card-secondary{border-top-color:var(--bs-secondary)}

/* Legacy card variants now read as AdminLTE widgets */
.report-card,.quick-card{padding:0!important;border-radius:var(--bs-border-radius)!important}
.jmt-kpi-info-box{padding:0!important;border-radius:var(--bs-border-radius)!important;min-height:90px}
.jmt-kpi-info-box .info-box-content{padding:.6rem .85rem}
.jmt-kpi-info-box .info-box-icon{width:68px;font-size:1.35rem}
.jmt-kpi-info-box .kpi-label{font-size:.8rem;text-transform:none;letter-spacing:0}
.jmt-kpi-info-box .kpi-value{font-size:1.15rem;margin-top:.15rem}
.jmt-kpi-info-box .kpi-foot{font-size:.75rem;color:var(--bs-secondary-color);margin-top:.15rem}

/* AdminLTE Small Box tuned for Indonesian currency values */
.small-box{border-radius:var(--bs-border-radius);box-shadow:var(--bs-box-shadow-sm);overflow:hidden;margin-bottom:0}
.small-box>.inner{padding:1rem;min-height:112px}
.small-box>.inner h3{font-size:1.35rem;line-height:1.2;margin:0 4rem .3rem 0;overflow-wrap:anywhere}
.small-box>.inner p{font-size:.93rem;font-weight:600;margin-bottom:.25rem}
.small-box .small-box-icon{position:absolute;right:1rem;top:1rem;width:3.6rem;height:3.6rem;font-size:3rem;line-height:1;opacity:.28;transition:transform .2s ease}
.small-box:hover .small-box-icon{transform:scale(1.05)}
.small-box .small-box-footer{padding:.45rem .75rem;text-align:center;display:block}

/* AdminLTE Info Box */
.info-box{min-height:90px;padding:0!important;border-radius:var(--bs-border-radius);overflow:hidden}
.info-box .info-box-icon{width:70px;min-width:70px;border-radius:0;display:flex;align-items:center;justify-content:center;font-size:1.4rem}
.info-box .info-box-content{padding:.65rem .85rem;min-width:0}
.info-box .info-box-text{font-size:.8rem;color:var(--bs-secondary-color);white-space:normal}
.info-box .info-box-number{font-size:1.05rem;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.info-box:hover{box-shadow:var(--bs-box-shadow)!important}

/* Recording cards retain semantic colours but use AdminLTE card geometry */
.record-card{
  border-radius:var(--bs-border-radius)!important;
  box-shadow:var(--bs-box-shadow-sm)!important;
  border-width:1px!important;
}
.record-card::before{width:4px!important}
.record-section-title{padding-bottom:.65rem;border-bottom:1px solid var(--bs-border-color-translucent)}
.summary-box{border-radius:var(--bs-border-radius)!important}

/* --- AdminLTE/Data Tables style --- */
.jmt-dt-panel{
  padding:.75rem;
  border:1px solid var(--bs-border-color);
  border-radius:var(--bs-border-radius);
  background:var(--bs-tertiary-bg);
}
.jmt-dt-search{width:min(18rem,100%)}
.jmt-dt-column-filter-host{
  padding-top:.7rem;
  margin-top:.7rem!important;
  border-top:1px solid var(--bs-border-color);
}
.jmt-columns-menu .dropdown-menu{
  display:none;
  position:absolute;
  z-index:1050;
  top:calc(100% + .25rem);
  left:0;
  min-width:220px;
  max-height:300px;
  overflow:auto;
  background:var(--bs-body-bg);
  border:1px solid var(--bs-border-color);
}
.jmt-columns-menu.is-open .dropdown-menu{display:block}
.jmt-columns-dropdown .dropdown-item{font-size:.82rem;cursor:pointer}
.jmt-dt-footer{padding:.55rem .1rem}
.jmt-dt-pagination .btn{min-width:34px}
.data-table.table{
  --bs-table-bg:transparent;
  width:100%;
  margin-bottom:0;
  font-size:.84rem;
}
.data-table.table>thead>tr>th{
  padding:.72rem .75rem;
  background:var(--bs-tertiary-bg);
  border-bottom-width:2px;
  color:var(--bs-emphasis-color);
  font-size:.72rem;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
  vertical-align:middle;
}
.data-table.table>tbody>tr>td{padding:.68rem .75rem;vertical-align:middle}
.jmt-sortable{position:relative;padding-right:1.5rem!important}
.jmt-sortable::after{position:absolute;right:.5rem;top:50%;transform:translateY(-50%)}
.table-responsive{border-radius:var(--bs-border-radius)}
.compact-table{min-width:560px}

/* Dashboard */
.jmt-dashboard-chart{height:280px;position:relative}
.card .table-responsive>.table>thead>tr>th:first-child,
.card .table-responsive>.table>tbody>tr>td:first-child{padding-left:1rem}
.card .table-responsive>.table>thead>tr>th:last-child,
.card .table-responsive>.table>tbody>tr>td:last-child{padding-right:1rem}

/* Buttons/tools match AdminLTE */
.btn-tool{--bs-btn-padding-x:.45rem;--bs-btn-padding-y:.25rem;color:var(--bs-secondary-color);border:0;background:transparent}
.btn-tool:hover{color:var(--bs-body-color);background:var(--bs-tertiary-bg)}
.card-tools>.btn-tool{margin:-.2rem 0}

/* Mobile */
@media(max-width:991.98px){
  .small-box>.inner h3{font-size:1.2rem;margin-right:3.25rem}
  .small-box .small-box-icon{font-size:2.5rem;width:3rem;height:3rem}
}
@media(max-width:767.98px){
  .card.jmt-adminlte-card>.card-header{align-items:flex-start;flex-wrap:wrap}
  .card.jmt-adminlte-card>.card-header .card-tools{margin-left:0;width:100%;justify-content:flex-end}
  .jmt-dt-panel{padding:.65rem}
  .jmt-dt-search{width:100%}
  .jmt-dt-footer{align-items:stretch!important}
  .jmt-dt-pagination{overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:.15rem}
  .data-table.table{min-width:680px}
  .small-box>.inner{min-height:105px}
  .info-box .info-box-icon{width:58px;min-width:58px}
}
@media(max-width:575.98px){
  .small-box>.inner h3{font-size:1.05rem}
  .small-box>.inner p{font-size:.85rem}
  .jmt-dt-panel .btn{flex:1 1 auto}
  .card.jmt-adminlte-card>.card-body{padding:.85rem}
}


/* ===================================================================
   JMT Farm v13 — Server-side DataTable + standard action buttons
   =================================================================== */
.jmt-server-toolbar{
  padding:.75rem;
  border:1px solid var(--bs-border-color);
  border-radius:var(--bs-border-radius);
  background:var(--bs-tertiary-bg);
}
.jmt-server-search{width:min(22rem,100%)}
.jmt-server-footer{padding:.5rem .15rem}
.jmt-table-loading{opacity:.78}
.jmt-sortable{cursor:pointer;user-select:none;position:relative}
.jmt-sortable::after{content:"\f0dc";font-family:"Font Awesome 7 Free","Font Awesome 6 Free";font-weight:900;opacity:.35}
.jmt-sortable[data-sort-dir="asc"]::after{content:"\f0de";opacity:.8}
.jmt-sortable[data-sort-dir="desc"]::after{content:"\f0dd";opacity:.8}

/* Uniform action buttons */
.data-cell-actions,.piutang-actions{
  display:flex!important;align-items:center;gap:.35rem;flex-wrap:wrap;
}
.data-cell-actions form,.piutang-actions form{display:inline-flex!important;margin:0}
.btn--icon.jmt-action-btn{
  width:2rem!important;height:2rem!important;min-width:2rem!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:.45rem!important;border:1px solid transparent!important;
  font-size:.82rem!important;padding:0!important;line-height:1!important;
  transition:all .15s ease!important;text-decoration:none!important;
  box-shadow:none!important;
}
.jmt-action-primary{color:#0d6efd!important;background:#e7f1ff!important;border-color:#9ec5fe!important}
.jmt-action-warning{color:#856404!important;background:#fff3cd!important;border-color:#ffe69c!important}
.jmt-action-danger{color:#b02a37!important;background:#f8d7da!important;border-color:#f1aeb5!important}
.jmt-action-success{color:#146c43!important;background:#d1e7dd!important;border-color:#a3cfbb!important}
.jmt-action-info{color:#087990!important;background:#cff4fc!important;border-color:#9eeaf9!important}
.jmt-action-secondary{color:#495057!important;background:#e9ecef!important;border-color:#ced4da!important}
.btn--icon.jmt-action-btn:hover{filter:brightness(.96);transform:translateY(-1px)}
.btn--icon.jmt-action-btn:focus{box-shadow:0 0 0 .2rem rgba(13,110,253,.15)!important;outline:0}

/* AdminLTE-standard card framing for all list pages */
.card:has(> .table-wrap),
.card:has(> .jmt-table-wrap),
.card:has(.data-table){
  border-top:3px solid var(--bs-primary);
}
.card .data-toolbar{
  padding:.75rem 1rem;margin:0!important;
  border-bottom:1px solid var(--bs-border-color);
  background:var(--bs-tertiary-bg);
}
.card .table-wrap,.card .jmt-table-wrap{margin:0!important;padding:0!important}
.card .table-wrap table,.card .jmt-table-wrap table{margin:0!important}

@media(max-width:767.98px){
  .jmt-server-toolbar{padding:.65rem}
  .jmt-server-search{width:100%}
  .jmt-server-toolbar .btn{flex:1 1 auto}
  .jmt-server-footer .btn-group{overflow-x:auto;flex-wrap:nowrap!important;max-width:100%}
  .btn--icon.jmt-action-btn{width:2.15rem!important;height:2.15rem!important}
}


/* JMT Farm v14 — uniform Font Awesome action buttons */
.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}
.jmt-action-group,.data-cell-actions,.piutang-actions,.action-buttons{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:wrap!important;gap:.35rem!important;min-width:max-content;
}
.jmt-action-group form,.data-cell-actions form,.piutang-actions form,.action-buttons form{
  display:inline-flex!important;align-items:center!important;margin:0!important;padding:0!important;
}
.jmt-action-btn.btn--icon{
  width:2rem!important;height:2rem!important;min-width:2rem!important;min-height:2rem!important;
  max-width:2rem!important;padding:0!important;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;overflow:hidden!important;white-space:nowrap!important;line-height:1!important;
  border-radius:.45rem!important;text-decoration:none!important;border:1px solid transparent!important;
}
.jmt-action-btn.btn--icon .fa-solid{
  display:inline-block!important;width:1em!important;height:1em!important;line-height:1!important;
  font-size:.82rem!important;text-align:center!important;pointer-events:none!important;
}
.jmt-action-detail,.jmt-action-primary,.jmt-action-add{color:#0d6efd!important;background:#e7f1ff!important;border-color:#9ec5fe!important}
.jmt-action-edit,.jmt-action-warning,.jmt-action-cancel,.jmt-action-status{color:#8a6500!important;background:#fff3cd!important;border-color:#ffe69c!important}
.jmt-action-delete,.jmt-action-danger{color:#b02a37!important;background:#f8d7da!important;border-color:#f1aeb5!important}
.jmt-action-post,.jmt-action-approve,.jmt-action-payment,.jmt-action-success{color:#146c43!important;background:#d1e7dd!important;border-color:#a3cfbb!important}
.jmt-action-process,.jmt-action-info{color:#087990!important;background:#cff4fc!important;border-color:#9eeaf9!important}
.jmt-action-print,.jmt-action-reset,.jmt-action-secondary{color:#495057!important;background:#e9ecef!important;border-color:#ced4da!important}
.jmt-action-btn.btn--icon:hover{filter:brightness(.94)!important;transform:translateY(-1px)}
.jmt-action-btn.btn--icon:focus-visible{outline:0!important;box-shadow:0 0 0 .2rem rgba(13,110,253,.18)!important}
table.data-table th:last-child,table.data-table td:last-child{white-space:nowrap}
table.data-table td:last-child:has(.jmt-action-group),table.data-table td:last-child:has(.btn--icon){min-width:82px}
@media(max-width:767.98px){
  .jmt-action-btn.btn--icon{width:2.15rem!important;height:2.15rem!important;min-width:2.15rem!important;max-width:2.15rem!important}
}


/* ===================================================================
   JMT Farm v15 — Flexible tables without forced horizontal scrolling
   =================================================================== */

/* Desktop/tablet: let the table fit the card. Old inline min-width rules
   are neutralized and long content can wrap naturally. */
table.data-table.jmt-flex-table{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:auto!important;
}
.jmt-table-wrap,
.table-wrap,
.table-responsive{
  width:100%!important;
  max-width:100%!important;
}
.card .jmt-table-wrap,
.card .table-wrap,
.card .table-responsive{
  overflow-x:visible!important;
}
table.data-table.jmt-flex-table th,
table.data-table.jmt-flex-table td{
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  hyphens:auto;
  vertical-align:middle!important;
  line-height:1.35;
}
table.data-table.jmt-flex-table th{
  font-size:.72rem;
}
table.data-table.jmt-flex-table td{
  font-size:.80rem;
}

/* Compact semantic columns. */
table.data-table.jmt-flex-table .jmt-col-action{
  width:1%!important;
  min-width:72px!important;
  white-space:nowrap!important;
}
table.data-table.jmt-flex-table .jmt-col-status{
  width:1%!important;
  min-width:82px!important;
  white-space:normal!important;
  text-align:center;
}
table.data-table.jmt-flex-table .jmt-col-date{
  width:1%!important;
  min-width:92px!important;
}
table.data-table.jmt-flex-table .jmt-col-number{
  width:1%!important;
  min-width:74px!important;
}
table.data-table.jmt-flex-table .jmt-col-code{
  min-width:92px!important;
}

/* Long business names/descriptions are allowed to flow to multiple lines. */
table.data-table.jmt-flex-table td strong,
table.data-table.jmt-flex-table td a,
table.data-table.jmt-flex-table td .small,
table.data-table.jmt-flex-table td .text-body-secondary{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Avoid old hard-coded widths from views. */
table.data-table.jmt-flex-table[style]{
  min-width:0!important;
  width:100%!important;
}
table.data-table.jmt-flex-table col,
table.data-table.jmt-flex-table colgroup{
  max-width:100%;
}

/* Toolbars remain fluid and may wrap instead of widening the card. */
.jmt-server-toolbar>.d-flex,
.data-toolbar,
.data-toolbar-left,
.data-toolbar-right{
  min-width:0;
}
.jmt-server-toolbar .btn,
.data-toolbar .btn{
  white-space:nowrap;
}
.jmt-server-search{
  min-width:180px;
  max-width:22rem;
  flex:0 1 22rem;
}

/* At medium widths, use slightly denser typography so wide tables remain
   readable without creating a horizontal scrollbar. */
@media(max-width:1199.98px) and (min-width:768px){
  table.data-table.jmt-flex-table th{padding:.56rem .48rem!important;font-size:.68rem}
  table.data-table.jmt-flex-table td{padding:.56rem .48rem!important;font-size:.75rem}
  .jmt-action-btn.btn--icon{
    width:1.85rem!important;height:1.85rem!important;min-width:1.85rem!important;max-width:1.85rem!important;
  }
}

/* Mobile: convert each table row into a labeled AdminLTE-style record card.
   This removes the need for horizontal scrolling entirely. */
@media(max-width:767.98px){
  .card .jmt-table-wrap,
  .card .table-wrap,
  .card .table-responsive,
  .jmt-table-wrap,
  .table-wrap,
  .table-responsive{
    overflow-x:visible!important;
  }

  table.data-table.jmt-flex-table,
  table.data-table.jmt-flex-table thead,
  table.data-table.jmt-flex-table tbody,
  table.data-table.jmt-flex-table tr,
  table.data-table.jmt-flex-table th,
  table.data-table.jmt-flex-table td{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  table.data-table.jmt-flex-table{
    border:0!important;
    background:transparent!important;
  }

  table.data-table.jmt-flex-table thead{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    white-space:nowrap!important;
  }

  table.data-table.jmt-flex-table tbody{
    display:grid!important;
    gap:.75rem!important;
  }

  table.data-table.jmt-flex-table tbody tr{
    border:1px solid var(--bs-border-color)!important;
    border-left:4px solid var(--bs-primary)!important;
    border-radius:var(--bs-border-radius)!important;
    background:var(--bs-body-bg)!important;
    box-shadow:var(--bs-box-shadow-sm)!important;
    overflow:hidden!important;
  }

  table.data-table.jmt-flex-table tbody td{
    display:grid!important;
    grid-template-columns:minmax(105px,36%) minmax(0,1fr)!important;
    gap:.65rem!important;
    align-items:start!important;
    padding:.58rem .72rem!important;
    border:0!important;
    border-bottom:1px solid var(--bs-border-color-translucent)!important;
    text-align:left!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  table.data-table.jmt-flex-table tbody td:last-child{
    border-bottom:0!important;
  }

  table.data-table.jmt-flex-table tbody td::before{
    content:attr(data-label);
    display:block;
    font-size:.70rem;
    line-height:1.35;
    font-weight:700;
    color:var(--bs-secondary-color);
    text-transform:none;
    overflow-wrap:anywhere;
  }

  table.data-table.jmt-flex-table tbody td.jmt-col-action{
    min-width:0!important;
    grid-template-columns:minmax(105px,36%) minmax(0,1fr)!important;
  }

  table.data-table.jmt-flex-table tbody td.jmt-col-action>.jmt-action-group,
  table.data-table.jmt-flex-table tbody td.jmt-col-action>.data-cell-actions,
  table.data-table.jmt-flex-table tbody td.jmt-col-action>.piutang-actions,
  table.data-table.jmt-flex-table tbody td.jmt-col-action>.action-buttons{
    justify-content:flex-start!important;
    min-width:0!important;
  }

  table.data-table.jmt-flex-table tbody td[colspan]{
    display:block!important;
    text-align:center!important;
  }
  table.data-table.jmt-flex-table tbody td[colspan]::before{
    content:none!important;
  }

  .jmt-server-footer{
    padding:.65rem 0!important;
  }
  .jmt-server-footer .dt-pages{
    max-width:100%;
    overflow-x:auto;
  }
  .jmt-server-search{
    min-width:0;
    max-width:none;
    width:100%;
    flex:1 1 100%;
  }
}

/* Very small mobile screens */
@media(max-width:420px){
  table.data-table.jmt-flex-table tbody td{
    grid-template-columns:1fr!important;
    gap:.25rem!important;
  }
  table.data-table.jmt-flex-table tbody td::before{
    margin-bottom:.05rem;
  }
}


/* ===================================================================
   JMT Farm v16 — hard guarantee: DataTable fits inside its AdminLTE card
   =================================================================== */
table.data-table.jmt-flex-table{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed!important;
  margin-left:0!important;
  margin-right:0!important;
}
table.data-table.jmt-flex-table>thead>tr>th,
table.data-table.jmt-flex-table>tbody>tr>td{
  width:auto;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
/* Action/status remain compact while textual columns absorb/wrap content. */
table.data-table.jmt-flex-table .jmt-col-action{width:82px!important;min-width:82px!important;max-width:82px!important}
table.data-table.jmt-flex-table .jmt-col-status{width:92px!important;min-width:72px!important}
table.data-table.jmt-flex-table .jmt-col-date{width:116px!important;min-width:88px!important}

/* Legacy anonymous wrapper divs are normalized by JS, but these selectors
   provide a CSS fallback when JavaScript loads a little later. */
.card>div[style*="overflow-x:auto"]:has(> table.data-table),
.card .card-body>div[style*="overflow-x:auto"]:has(> table.data-table){
  overflow-x:visible!important;
  margin-left:0!important;
  margin-right:0!important;
  width:100%!important;
  max-width:100%!important;
}
.card>div[style*="overflow-x:auto"]>table.data-table,
.card .card-body>div[style*="overflow-x:auto"]>table.data-table{
  margin-left:0!important;
  margin-right:0!important;
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
}
@media(max-width:991.98px) and (min-width:768px){
  table.data-table.jmt-flex-table{table-layout:fixed!important}
  table.data-table.jmt-flex-table th{font-size:.65rem!important;padding:.5rem .38rem!important}
  table.data-table.jmt-flex-table td{font-size:.72rem!important;padding:.5rem .38rem!important}
}


/* ===================================================================
   JMT Farm v17 — Corrective flexible table layout
   Fixes column collapse introduced by forced table-layout:fixed.
   =================================================================== */

/* Desktop/tablet: use the browser's natural table algorithm. This lets
   important text columns receive room while long content wraps. */
table.data-table.jmt-flex-table{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:auto!important;
  margin:0!important;
}

table.data-table.jmt-flex-table>thead>tr>th,
table.data-table.jmt-flex-table>tbody>tr>td{
  width:auto!important;
  max-width:none!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  hyphens:none!important;
}

/* Never squeeze business values into a one-character vertical column. */
table.data-table.jmt-flex-table .jmt-col-number,
table.data-table.jmt-flex-table .jmt-col-code,
table.data-table.jmt-flex-table .jmt-col-date,
table.data-table.jmt-flex-table .jmt-col-status{
  width:auto!important;
  max-width:none!important;
}
table.data-table.jmt-flex-table .jmt-col-number{min-width:72px!important}
table.data-table.jmt-flex-table .jmt-col-code{min-width:88px!important}
table.data-table.jmt-flex-table .jmt-col-date{min-width:96px!important}
table.data-table.jmt-flex-table .jmt-col-status{min-width:72px!important;text-align:center}
table.data-table.jmt-flex-table .jmt-col-action{
  width:auto!important;
  min-width:76px!important;
  max-width:none!important;
  white-space:nowrap!important;
}

/* Text columns are intentionally allowed to wrap to 2+ lines. */
table.data-table.jmt-flex-table td:not(.jmt-col-action),
table.data-table.jmt-flex-table th:not(.jmt-col-action){
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* The responsive wrapper itself must not create a scrollbar on desktop.
   The table fits the card using wrapping instead. */
@media(min-width:768px){
  .card .table-responsive:has(> table.data-table.jmt-flex-table),
  .card .jmt-table-wrap:has(> table.data-table.jmt-flex-table),
  .card .table-wrap:has(> table.data-table.jmt-flex-table){
    overflow-x:clip!important;
    overflow-y:visible!important;
  }
}

/* Dense tables get slightly smaller padding, but not tiny columns. */
@media(max-width:1199.98px) and (min-width:768px){
  table.data-table.jmt-flex-table th{padding:.52rem .42rem!important;font-size:.68rem!important}
  table.data-table.jmt-flex-table td{padding:.52rem .42rem!important;font-size:.74rem!important}
  table.data-table.jmt-flex-table .jmt-col-number{min-width:66px!important}
  table.data-table.jmt-flex-table .jmt-col-code{min-width:80px!important}
  table.data-table.jmt-flex-table .jmt-col-date{min-width:88px!important}
}

/* Preserve the v15 stacked record layout on phones. */
@media(max-width:767.98px){
  table.data-table.jmt-flex-table,
  table.data-table.jmt-flex-table>thead>tr>th,
  table.data-table.jmt-flex-table>tbody>tr>td{
    min-width:0!important;
    max-width:100%!important;
  }
  table.data-table.jmt-flex-table tbody td{
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }
}


/* ===================================================================
   B03.1 — Standardisasi lebar kolom AKSI DataTable
   =================================================================== */

/* Desktop/tablet:
   Semua kolom yang dikenali JavaScript sebagai "Aksi" dikunci 50px.
   Tombol di dalamnya dibuat ringkas dan ditata di tengah. */
@media (min-width:768px){
  table.data-table.jmt-flex-table th.jmt-col-action,
  table.data-table.jmt-flex-table td.jmt-col-action,
  table.data-table th.jmt-col-action,
  table.data-table td.jmt-col-action,
  table.data-table td[data-label="Aksi"],
  table.data-table th[data-label="Aksi"]{
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    padding-left:.3rem!important;
    padding-right:.3rem!important;
    text-align:center!important;
    white-space:normal!important;
  }

  table.data-table .jmt-col-action .jmt-action-group,
  table.data-table .jmt-col-action .data-cell-actions,
  table.data-table .jmt-col-action .piutang-actions,
  table.data-table .jmt-col-action .action-buttons,
  table.data-table td[data-label="Aksi"] .jmt-action-group,
  table.data-table td[data-label="Aksi"] .data-cell-actions,
  table.data-table td[data-label="Aksi"] .piutang-actions,
  table.data-table td[data-label="Aksi"] .action-buttons{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:.25rem!important;
  }

  table.data-table .jmt-col-action form,
  table.data-table td[data-label="Aksi"] form{
    display:inline-flex!important;
    margin:0!important;
    padding:0!important;
  }

  /* 28px icon button fits comfortably inside a 50px action column.
     When multiple actions exist, they wrap vertically instead of
     forcing the table wider. */
  table.data-table .jmt-col-action .jmt-action-btn.btn--icon,
  table.data-table .jmt-col-action .btn--icon,
  table.data-table td[data-label="Aksi"] .jmt-action-btn.btn--icon,
  table.data-table td[data-label="Aksi"] .btn--icon{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    min-height:28px!important;
    max-width:28px!important;
    padding:0!important;
    margin:0!important;
  }
}

/* Mobile:
   tetap memakai layout record-card responsif. Label Aksi tidak dikunci 50px,
   sehingga tombol tetap nyaman disentuh pada layar kecil. */
@media (max-width:767.98px){
  table.data-table.jmt-flex-table tbody td.jmt-col-action,
  table.data-table.jmt-flex-table tbody td[data-label="Aksi"]{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
}


/* =====================================================================
   JMT Farm — Global confirmation modal precision layer
   Satu anatomi untuk Hapus / Posting / Pembatalan / Perubahan status.
   ===================================================================== */
.jmt-confirm{
  background:transparent!important;
  z-index:5000!important;
}
.jmt-confirm__backdrop{
  position:absolute!important;inset:0!important;
  background:rgba(15,23,42,.58)!important;
  backdrop-filter:blur(2px)!important;
}
.jmt-confirm__dialog{
  position:relative!important;z-index:1!important;
  width:min(520px,calc(100vw - 2rem))!important;
  max-height:calc(100dvh - 2rem)!important;
  padding:0!important;overflow:hidden!important;
  background:var(--bs-body-bg)!important;
  border:1px solid var(--bs-border-color)!important;
  border-radius:12px!important;
  box-shadow:0 1.5rem 4rem rgba(15,23,42,.28)!important;
}
.jmt-confirm__header{
  display:grid!important;grid-template-columns:44px minmax(0,1fr) 32px!important;
  align-items:center!important;gap:.85rem!important;
  padding:1rem 1.15rem!important;
  border-bottom:1px solid var(--bs-border-color)!important;
}
.jmt-confirm__heading{min-width:0!important}.jmt-confirm__label{font-size:.67rem!important;font-weight:700!important;letter-spacing:.09em!important;color:var(--bs-secondary-color)!important;line-height:1.2!important;margin-bottom:.2rem!important}.jmt-confirm__heading h3{margin:0!important;font-size:1rem!important;font-weight:600!important;line-height:1.35!important;color:var(--bs-body-color)!important;overflow-wrap:anywhere!important}.jmt-confirm__icon{width:42px!important;height:42px!important;margin:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;font-size:1.05rem!important;background:var(--bs-primary-bg-subtle)!important;color:var(--bs-primary-text-emphasis)!important}.jmt-confirm[data-tone="danger"] .jmt-confirm__icon{background:var(--bs-danger-bg-subtle)!important;color:var(--bs-danger-text-emphasis)!important}.jmt-confirm[data-tone="warning"] .jmt-confirm__icon{background:var(--bs-warning-bg-subtle)!important;color:var(--bs-warning-text-emphasis)!important}.jmt-confirm__close{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--bs-secondary-color)!important;font-size:.9rem!important}.jmt-confirm__close:hover{background:var(--bs-tertiary-bg)!important;color:var(--bs-body-color)!important}.jmt-confirm__body{padding:1.15rem!important;background:var(--bs-body-bg)!important}.jmt-confirm__body p{margin:0!important;font-size:.9rem!important;line-height:1.6!important;color:var(--bs-secondary-color)!important;overflow-wrap:anywhere!important}.jmt-confirm__footer{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:.5rem!important;padding:.8rem 1.15rem!important;border-top:1px solid var(--bs-border-color)!important;background:var(--bs-tertiary-bg)!important}.jmt-confirm__footer .btn{min-width:92px!important}.jmt-confirm[data-tone="danger"] #jmtConfirmSubmit{background:var(--bs-danger)!important;border-color:var(--bs-danger)!important;color:#fff!important}.jmt-confirm[data-tone="warning"] #jmtConfirmSubmit{background:var(--bs-warning)!important;border-color:var(--bs-warning)!important;color:#000!important}
@media(max-width:575.98px){.jmt-confirm{align-items:flex-end!important;padding:.5rem!important}.jmt-confirm__dialog{width:100%!important;border-radius:14px 14px 0 0!important}.jmt-confirm__footer{display:grid!important;grid-template-columns:1fr 1fr!important}.jmt-confirm__footer .btn{width:100%!important}.jmt-confirm__header{grid-template-columns:40px minmax(0,1fr) 32px!important;padding:.9rem 1rem!important}.jmt-confirm__body{padding:1rem!important}}


/* =====================================================================
   JMT Farm — compact navbar account dropdown
   Keeps the AdminLTE user-menu anatomy but prevents the account panel
   from becoming oversized on desktop or overflowing on small screens.
   ===================================================================== */
.jmt-admin-user-menu{position:relative}
.jmt-admin-user-menu>.nav-link{
  display:flex;
  align-items:center;
  gap:.35rem;
  min-height:44px;
  padding:.35rem .55rem;
  border-radius:.5rem;
  color:var(--bs-body-color);
  white-space:nowrap;
}
.jmt-admin-user-menu>.nav-link:hover,
.jmt-admin-user-menu.is-open>.nav-link{
  background:var(--bs-tertiary-bg);
}
.jmt-admin-user-menu>.nav-link::after{margin-left:.15rem}

.jmt-admin-user-menu .jmt-user-dropdown{
  position:absolute;
  top:calc(100% + .35rem);
  right:0;
  left:auto;
  width:300px;
  min-width:300px;
  max-width:calc(100vw - 1rem);
  margin:0;
  padding:0;
  overflow:hidden;
  border:1px solid var(--bs-border-color);
  border-radius:.65rem;
  background:var(--bs-body-bg);
  box-shadow:0 .75rem 2rem rgba(0,0,0,.16);
  z-index:1080;
}
.jmt-admin-user-menu .jmt-user-dropdown__header{
  min-height:auto;
  padding:1rem .9rem .9rem;
}
.jmt-admin-user-menu .jmt-user-dropdown__header .jmt-admin-avatar-lg{
  width:54px;
  height:54px;
  font-size:.95rem;
  margin-bottom:.55rem!important;
}
.jmt-admin-user-menu .jmt-user-dropdown__identity{
  width:100%;
  max-width:100%;
  margin:0;
  padding:0 .25rem;
  font-size:.94rem;
  font-weight:600;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.jmt-admin-user-menu .jmt-user-dropdown__identity small{
  display:block;
  margin-top:.25rem!important;
  font-size:.74rem;
  font-weight:400;
  line-height:1.3;
  opacity:.88;
  overflow-wrap:anywhere;
}
.jmt-admin-user-menu .jmt-user-dropdown__footer{
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:.55rem;
  padding:.7rem;
  background:var(--bs-body-bg);
  border-top:1px solid var(--bs-border-color);
}
.jmt-admin-user-menu .jmt-user-dropdown__footer .btn{
  width:100%;
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.25rem;
  padding:.45rem .5rem;
  font-size:.78rem;
  white-space:nowrap;
}

@media (max-width:767.98px){
  .jmt-admin-user-menu .jmt-user-dropdown{
    position:fixed;
    top:56px;
    right:.5rem;
    width:min(300px,calc(100vw - 1rem));
    min-width:0;
    max-width:calc(100vw - 1rem);
  }
}
@media (max-width:360px){
  .jmt-admin-user-menu .jmt-user-dropdown__footer{grid-template-columns:1fr}
}

/* =====================================================================
   JMT Farm — Responsive Modal Hardening (2026-09-24)
   Applies globally to all legacy .jmt-modal dialogs.
   Goal: modal header/footer always reachable; body scrolls independently;
   works on desktop, laptop, tablet, mobile, and short-height screens.
   ===================================================================== */

/* Overlay always uses the real viewport and remains scroll-safe. */
.jmt-modal{
  box-sizing:border-box!important;
  padding:clamp(.5rem,2vh,1.25rem)!important;
  overflow:hidden!important;
  overscroll-behavior:contain!important;
}

/* Dialog itself never scrolls as one giant block. Header/footer stay visible. */
.jmt-modal-card,
.jmt-modal-card.small,
.jmt-modal-card.wide,
.jmt-modal-card.large{
  box-sizing:border-box!important;
  width:min(960px,calc(100vw - 2rem))!important;
  max-width:calc(100vw - 2rem)!important;
  max-height:calc(100dvh - 2rem)!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.jmt-modal-card.small{width:min(600px,calc(100vw - 2rem))!important}
.jmt-modal-card.wide{width:min(1120px,calc(100vw - 2rem))!important}
.jmt-modal-card.large{width:min(1240px,calc(100vw - 2rem))!important}

/* Most application dialogs wrap body + footer inside a form. Make that form
   the flex container; otherwise the footer can be pushed below the viewport. */
.jmt-modal-card>form,
.jmt-modal-card>.jmt-modal-form{
  flex:1 1 auto!important;
  min-height:0!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  margin:0!important;
}

/* Fixed header/footer, independently scrollable modal body. */
.jmt-modal-head,
.jmt-modal .modal-header{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:4!important;
}
.jmt-modal-body,
.jmt-modal .modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  min-width:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
}
.jmt-modal-foot,
.jmt-modal .modal-footer{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:4!important;
  background:var(--bs-body-bg)!important;
}

/* Forms and grids must be allowed to shrink instead of forcing dialog width. */
.jmt-modal .jmt-grid,
.jmt-modal .jmt-form-grid,
.jmt-modal .form-grid,
.jmt-modal .row,
.jmt-modal [class*="col-"]{
  min-width:0!important;
}
.jmt-modal input,
.jmt-modal select,
.jmt-modal textarea,
.jmt-modal .input,
.jmt-modal .select,
.jmt-modal .form-control,
.jmt-modal .form-select{
  max-width:100%!important;
  min-width:0!important;
}

/* Long detail tables scroll inside the body; they never widen the whole page. */
.jmt-modal .table-responsive,
.jmt-modal .table-wrap,
.jmt-modal .jmt-table-wrap,
.jmt-modal [style*="overflow-x:auto"],
.jmt-modal [style*="overflow-x: auto"]{
  max-width:100%!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
.jmt-modal .jmt-detail-table,
.jmt-modal table{
  max-width:none;
}

/* Prevent fixed-width table/form children from making modal inaccessible. */
.jmt-modal-body>*{max-width:100%}
.jmt-modal-body img,.jmt-modal-body svg,.jmt-modal-body canvas{max-width:100%;height:auto}

/* Short laptop screens: prioritize usable form area while keeping actions visible. */
@media (max-height:760px) and (min-width:768px){
  .jmt-modal{padding:.5rem!important}
  .jmt-modal-card,
  .jmt-modal-card.small,
  .jmt-modal-card.wide,
  .jmt-modal-card.large{max-height:calc(100dvh - 1rem)!important}
  .jmt-modal-head,.jmt-modal .modal-header{padding:.75rem 1rem!important}
  .jmt-modal-body,.jmt-modal .modal-body{padding:1rem!important}
  .jmt-modal-foot,.jmt-modal .modal-footer{padding:.65rem 1rem!important}
}

/* Tablet/mobile: use a bottom-sheet/full-height pattern like AdminLTE mobile UI. */
@media (max-width:767.98px){
  .jmt-modal{
    align-items:flex-end!important;
    padding:.35rem!important;
  }
  .jmt-modal-card,
  .jmt-modal-card.small,
  .jmt-modal-card.wide,
  .jmt-modal-card.large{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - .35rem - env(safe-area-inset-top,0px))!important;
    border-radius:1rem 1rem .35rem .35rem!important;
  }
  .jmt-modal-head,.jmt-modal .modal-header{padding:.8rem .9rem!important}
  .jmt-modal-body,.jmt-modal .modal-body{padding:.9rem!important}
  .jmt-modal-foot,.jmt-modal .modal-footer{
    padding:.7rem .9rem calc(.7rem + env(safe-area-inset-bottom,0px))!important;
    gap:.5rem!important;
    flex-wrap:wrap!important;
  }
  .jmt-modal-foot .btn,.jmt-modal .modal-footer .btn{flex:1 1 auto!important}
  .jmt-modal .jmt-grid,
  .jmt-modal .jmt-form-grid,
  .jmt-modal .form-grid{grid-template-columns:1fr!important}
  .jmt-modal .jmt-grid .full,
  .jmt-modal .jmt-form-grid .full,
  .jmt-modal .form-grid .full{grid-column:auto!important}
}

/* Very small phones: maximize usable area and avoid oversized headings/buttons. */
@media (max-width:420px){
  .jmt-modal{padding:0!important}
  .jmt-modal-card,
  .jmt-modal-card.small,
  .jmt-modal-card.wide,
  .jmt-modal-card.large{
    max-height:100dvh!important;
    height:min(100dvh,100%)!important;
    border-radius:0!important;
    border-left:0!important;
    border-right:0!important;
  }
  .jmt-modal-head h3,.jmt-modal .modal-title{font-size:1rem!important}
  .jmt-modal-body,.jmt-modal .modal-body{padding:.75rem!important}
}


/* Sidebar brand mengikuti logo Profil Perusahaan. */
.jmt-brand-mark.jmt-brand-logo{background:#fff;padding:2px;overflow:hidden;flex:0 0 34px}
.jmt-brand-mark.jmt-brand-logo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:.3rem}
.sidebar-brand .brand-link{min-width:0}
.sidebar-brand .brand-text{min-width:0;max-width:145px}
@media (max-width: 575.98px){.sidebar-brand .brand-text{max-width:125px}}
