:root{
  --aw-primary:#178283;
  --aw-primary-dark:#106D6F;
  --aw-soft:#8BBDBD;
  --aw-bg:#F5FAFA;
  --aw-card:#FFFFFF;
  --aw-text:#17323A;
  --aw-border:#D9E8E8;
  --aw-success:#1F8A5B;
  --aw-warning:#D89B1D;
  --aw-danger:#C94B4B;
  --aw-info:#2F7E9E;
}
html, body { min-height: 100%; }
body{
  background:var(--aw-bg);
  color:var(--aw-text);
  font-size:14px;
}
.app-shell{display:flex;min-height:100vh;}
.app-content{flex:1;min-width:0;}
.app-main{min-width:0;}
.sidebar{
  background:#fff;
  border-right:1px solid var(--aw-border);
}
.sidebar-desktop{width:280px;min-height:100vh;position:sticky;top:0;align-self:flex-start;overflow-y:auto;}
.sidebar-collapse-bar{position:sticky;top:0;padding-bottom:.4rem;background:linear-gradient(180deg,#fff 65%, rgba(255,255,255,0));z-index:2;}
.desktop-sidebar-toggle-btn,.desktop-sidebar-reveal{min-height:40px;border-radius:999px;padding:.45rem .95rem;font-weight:700;box-shadow:0 6px 18px rgba(16,109,111,.08);}
.desktop-sidebar-reveal{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:1042;display:none !important;align-items:center;justify-content:center;width:20px;min-height:96px;padding:0;border:none;border-radius:0 14px 14px 0;background:linear-gradient(180deg,var(--aw-primary),var(--aw-primary-dark));color:#fff;box-shadow:0 12px 28px rgba(16,109,111,.2);opacity:.92;transition:width .18s ease, opacity .18s ease, box-shadow .18s ease;}
.desktop-sidebar-reveal:hover,.desktop-sidebar-reveal:focus-visible{width:28px;opacity:1;box-shadow:0 14px 30px rgba(16,109,111,.26);}
.desktop-sidebar-reveal-icon{font-size:1rem;line-height:1;}
.cron-command-box{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:.8rem;background:#f8fbfb;}
@media (min-width: 992px){
  html.aw-sidebar-collapsed .sidebar-desktop{display:none !important;}
  html.aw-sidebar-collapsed .app-content{width:100%;}
  html.aw-sidebar-collapsed .desktop-sidebar-reveal{display:inline-flex !important;}
}
.sidebar .nav-link{
  color:var(--aw-text);
  border-radius:12px;
  margin-bottom:4px;
  padding:.7rem .9rem;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover{
  background:rgba(23,130,131,.12);
  color:var(--aw-primary-dark);
}
.brand-card{
  border:1px solid var(--aw-border);
  border-radius:18px;
  background:#fff;
}
.brand-logo{max-width:110px;height:auto;}
.content-card{
  background:#fff;
  border:1px solid var(--aw-border);
  border-radius:18px;
  padding:1rem;
  box-shadow:0 4px 16px rgba(16,109,111,.04);
}
.metric-card{
  background:#fff;
  border:1px solid var(--aw-border);
  border-radius:18px;
  padding:1rem;
  height:100%;
  box-shadow:0 4px 16px rgba(16,109,111,.04);
}
.metric-value{font-size:1.8rem;font-weight:700;line-height:1.1;}
.btn-primary{background:var(--aw-primary);border-color:var(--aw-primary);}
.btn-primary:hover{background:var(--aw-primary-dark);border-color:var(--aw-primary-dark);}
.table{background:#fff;margin-bottom:0;}
.table thead th{background:#eef7f7;color:#23454f;white-space:nowrap;}
.table td{vertical-align:middle;}
.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;}
.login-card{max-width:980px;width:100%;border:1px solid var(--aw-border);border-radius:28px;background:#fff;overflow:hidden;box-shadow:0 10px 35px rgba(16,109,111,.08);}
.login-left{background:linear-gradient(180deg, rgba(23,130,131,.10), rgba(23,130,131,.03));padding:48px;}
.login-right{padding:48px;}
.small-muted{ color:#5d7680; }
.form-section-title{font-weight:700;color:var(--aw-primary-dark);margin-bottom:.75rem;}
.badge-soft{background:#eef7f7;color:var(--aw-primary-dark);}
.app-header{background:#fff;border-bottom:1px solid var(--aw-border);padding:.9rem 1rem;position:sticky;top:0;z-index:1030;}
.header-title{font-size:.95rem;}
pre{max-width:100%;overflow:auto;}
code{word-break:break-word;}

@media (max-width: 991.98px){
  .app-shell{display:block;}
  .app-main{padding-top:1rem;}
  .desktop-page-header{display:none !important;}
  .content-card, .metric-card{padding:.9rem;border-radius:16px;}
  .metric-value{font-size:1.45rem;}
  .content-card .table{min-width:700px;}
  .btn{white-space:nowrap;}
  .d-flex.justify-content-between.align-items-center.mb-3,
  .d-flex.justify-content-between.align-items-center.mb-2,
  .d-flex.justify-content-between.align-items-start.mb-3{
    flex-direction:column;
    align-items:stretch !important;
    gap:.75rem;
  }
  .d-flex.justify-content-between.align-items-center.mb-3 .btn,
  .d-flex.justify-content-between.align-items-center.mb-2 .btn,
  .d-flex.justify-content-between.align-items-start.mb-3 .btn{
    width:100%;
  }
  .row.g-2 > [class*="col-"], .row.g-3 > [class*="col-"], .row.g-4 > [class*="col-"]{margin-top:0;}
}

@media (max-width: 767.98px){
  body{font-size:13px;}
  .login-wrap{padding:14px;align-items:stretch;}
  .login-card{border-radius:18px;}
  .login-left, .login-right{padding:22px;}
  .brand-logo{max-width:90px;}
  h4, .h4{font-size:1.15rem;}
  h5, .h5{font-size:1.05rem;}
  .form-label{margin-bottom:.3rem;font-size:.9rem;}
  .form-control, .form-select{font-size:14px;padding:.65rem .75rem;}
  textarea.form-control{min-height:110px;}
  .content-card .table{min-width:620px;}
  .offcanvas{max-width:88vw;}
}

.metric-card{background:#fff;border:1px solid #d9e8e8;border-radius:1rem;padding:1rem;min-height:110px;box-shadow:0 8px 20px rgba(16,109,111,.06)}
.metric-label{font-size:.85rem;color:#5e7b7c;text-transform:uppercase;letter-spacing:.04em}
.metric-value{font-size:1.8rem;font-weight:700;color:#106d6f;margin-top:.35rem}


.print-page{background:#fff;}
.print-sheet{max-width:960px;margin:0 auto;padding:24px;background:#fff;color:#17323A;}
.print-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid var(--aw-border);padding-bottom:12px;}
.print-title{font-size:1.35rem;font-weight:700;color:var(--aw-primary-dark);}
.print-block{border:1px solid var(--aw-border);border-radius:14px;padding:14px;background:#fff;height:100%;}
.print-block-title{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:#5d7680;margin-bottom:8px;font-weight:700;}
.print-footer{border-top:1px solid var(--aw-border);padding-top:10px;color:#5d7680;font-size:.9rem;}
.barcode-sheet{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#fff;padding:24px;}
.barcode-card{width:420px;max-width:100%;border:2px solid #17323A;border-radius:18px;padding:20px 18px;text-align:center;background:#fff;}
.barcode-company{font-weight:700;font-size:1rem;color:#106d6f;}
.barcode-system{font-size:.78rem;color:#5d7680;margin-top:4px;}
.barcode-big{font-size:1.8rem;font-weight:800;letter-spacing:.04em;margin:16px 0 10px;}
.barcode-bars{font-family:monospace;font-size:1.3rem;letter-spacing:.12em;line-height:1.1;margin-bottom:10px;}
.barcode-name{font-weight:700;}
.barcode-meta{font-size:.82rem;color:#5d7680;margin-top:4px;}
@media print{
  .app-header,.sidebar,.btn,.offcanvas,.desktop-page-header{display:none !important;}
  body,html{background:#fff !important;color:#000 !important;-webkit-print-color-adjust:exact !important;print-color-adjust:exact !important;}
  .app-shell,.app-content,.app-main{display:block !important;width:100% !important;min-width:0 !important;padding:0 !important;margin:0 !important;}
  .content-card,.metric-card{box-shadow:none !important;border:1px solid #cfdede !important;break-inside:avoid;page-break-inside:avoid;}
}


/* Phase 20 mobile optimization */
.page-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;}
.page-toolbar .toolbar-actions{display:flex;gap:.5rem;flex-wrap:wrap;}
.filter-card{background:#f8fbfb;border:1px solid var(--aw-border);border-radius:16px;padding:1rem;}
.filter-card .form-label{font-size:.85rem;font-weight:600;color:#48636c;}
.filter-actions{display:flex;gap:.5rem;flex-wrap:wrap;}
.table-action-group{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end;}
.form-shell{display:flex;flex-direction:column;gap:1rem;}
.form-section-card{background:#fff;border:1px solid var(--aw-border);border-radius:18px;padding:1rem;box-shadow:0 4px 16px rgba(16,109,111,.04);}
.form-section-heading{font-size:.82rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--aw-primary-dark);margin-bottom:.9rem;}
.form-actions-sticky{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;justify-content:flex-start;padding-top:1rem;}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1rem;}
.detail-item{background:#f8fbfb;border:1px solid var(--aw-border);border-radius:14px;padding:.8rem .9rem;}
.detail-item-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#5d7680;margin-bottom:.25rem;font-weight:700;}
.detail-item-value{font-weight:600;color:#17323A;word-break:break-word;}
.mobile-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:.35rem;padding-bottom:.25rem;scrollbar-width:thin;}
.mobile-tabs .nav-link{white-space:nowrap;border-radius:999px;}
.mobile-table-title{font-weight:700;color:#17323A;}
.mobile-table-subtitle{font-size:.82rem;color:#5d7680;}
.summary-stat{background:#f8fbfb;border:1px solid var(--aw-border);border-radius:14px;padding:.8rem .9rem;height:100%;}
.card, .card-body{border-radius:18px;}

@media (max-width: 991.98px){
  .sidebar .nav-link{padding:.8rem .95rem;font-size:.97rem;}
  .page-toolbar{align-items:stretch;}
  .page-toolbar .toolbar-actions{width:100%;}
  .page-toolbar .toolbar-actions .btn{flex:1 1 180px;}
  .filter-card{padding:.9rem;}
  .form-actions-sticky{position:sticky;bottom:0;background:rgba(245,250,250,.96);backdrop-filter:blur(8px);margin:1rem -0.25rem -0.25rem;padding:1rem .25rem .25rem;border-top:1px solid var(--aw-border);z-index:20;}
}

@media (max-width: 767.98px){
  .content-card,.metric-card,.form-section-card,.card{border-radius:16px;}
  .page-toolbar .toolbar-actions .btn,
  .filter-actions .btn,
  .form-actions-sticky .btn{width:100%;}
  .form-actions-sticky .btn + .btn{margin-top:.4rem;}
  .table-action-group{justify-content:flex-start;}
  .detail-grid{grid-template-columns:1fr;}
  .nav.nav-tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:.25rem;}
  .nav.nav-tabs .nav-link{white-space:nowrap;}
  .mobile-card-table{min-width:0 !important;}
  .mobile-card-table thead{display:none;}
  .mobile-card-table,
  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td{display:block;width:100%;}
  .mobile-card-table tr{background:#fff;border:1px solid var(--aw-border);border-radius:16px;padding:.75rem .9rem;margin-bottom:.85rem;box-shadow:0 4px 14px rgba(16,109,111,.05);}
  .mobile-card-table td{border:none !important;padding:.32rem 0 !important;text-align:left !important;white-space:normal;}
  .mobile-card-table td[data-label]::before{content:attr(data-label);display:block;font-size:.74rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#5d7680;margin-bottom:.12rem;}
  .mobile-card-table td.actions-cell{padding-top:.55rem !important;margin-top:.35rem;border-top:1px dashed var(--aw-border) !important;}
  .mobile-card-table td.actions-cell::before{margin-bottom:.4rem;}
  .mobile-card-table td .btn{min-height:38px;}
  .mobile-card-table td.empty-state{text-align:center !important;}
  .table-responsive{overflow:visible;}
  .table-responsive > .table{margin-bottom:0;}
  .content-card .table,
  .card .table{min-width:0 !important;}
  .login-right .btn{width:100%;}
}


.btn-reset-filter{color:var(--aw-text);border-color:#9fb7bc;background:#fff;}
.btn-reset-filter:hover,.btn-reset-filter:focus{color:#fff;background:var(--aw-primary-dark);border-color:var(--aw-primary-dark);}
.filter-card .form-text{font-size:.78rem;}


.pagination-toolbar{border-top:1px solid var(--aw-border);padding-top:1rem;display:flex;flex-direction:column;align-items:center;gap:.85rem;}
.pagination-summary{font-size:.9rem;color:#5d7680;text-align:center;}
.pagination-summary strong{color:var(--aw-primary-dark);font-weight:700;}
.pagination-panel{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.75rem;max-width:100%;}
.pagination-field{display:flex;flex-direction:column;justify-content:center;gap:.35rem;padding:.6rem .8rem;background:#f8fbfb;border:1px solid var(--aw-border);border-radius:14px;box-shadow:0 4px 12px rgba(16,109,111,.04);flex:0 0 auto;}
.pagination-field-form{margin:0;}
.pagination-label{font-size:.72rem;line-height:1;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#5d7680;margin:0;}
.pagination-select{width:92px;min-width:92px;border-color:#cfe0e0;background-color:#fff;}
.pagination-nav-wrap{display:flex;align-items:center;justify-content:center;padding:.65rem .75rem;background:#f8fbfb;border:1px solid var(--aw-border);border-radius:14px;box-shadow:0 4px 12px rgba(16,109,111,.04);flex:0 1 auto;max-width:100%;}
.pagination-nav{display:flex;align-items:center;justify-content:center;gap:0;flex-wrap:nowrap;max-width:100%;}
.pagination-nav .btn{min-height:38px;border-color:#bdd4d5;color:#36545d;background:#fff;padding-inline:.85rem;}
.pagination-nav .btn:hover:not(.disabled),
.pagination-nav .btn:focus-visible:not(.disabled){background:#eef7f7;border-color:#9ebcbc;color:var(--aw-primary-dark);z-index:2;}
.pagination-nav .btn.disabled,
.pagination-nav .btn:disabled{background:#f4f7f7;color:#97a9ad;border-color:#d6e3e3;opacity:1;pointer-events:none;}
.pagination-status{display:flex;align-items:center;justify-content:center;min-height:38px;padding:0 .95rem;border:1px solid #bdd4d5;background:#fff;color:var(--aw-primary-dark);font-weight:700;white-space:nowrap;}
.pagination-jump-form{min-width:0;}
.pagination-jump-group{flex-wrap:nowrap;}
.pagination-jump-group .form-control,
.pagination-jump-group .btn{min-height:38px;}
.pagination-page-input{min-width:70px;width:70px;border-color:#cfe0e0;}
.pagination-jump-group .btn{padding-inline:.85rem;}

@media (max-width: 991.98px){
  .pagination-panel{justify-content:center;}
  .pagination-nav-wrap{order:2;width:auto;}
}

@media (max-width: 575.98px){
  .pagination-field{padding:.65rem .75rem;}
  .pagination-nav-wrap{padding:.55rem; width:100%;}
  .pagination-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;width:100%;}
  .pagination-nav .btn,
  .pagination-status{width:100%;border-radius:12px !important;}
  .pagination-status{grid-column:1 / -1;order:-1;}
  .pagination-page-input{width:64px;min-width:64px;}
}

.data-grid-shell{padding:0;overflow:hidden;border-radius:22px;}
.data-grid-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem;border-bottom:1px solid var(--aw-border);background:linear-gradient(180deg,#ffffff 0%, #fbfefe 100%);}
.data-grid-header h5{font-weight:700;color:var(--aw-primary-dark);}
.data-grid-header .small-muted{max-width:780px;color:#648087;font-size:.92rem;}
@media (max-width: 767.98px){
  .data-grid-header{flex-direction:column;align-items:stretch;}
}

/* Phase 35 unified data-grid component */
.data-grid-card{
  padding:0;
  overflow:hidden;
  border-radius:22px;
}
.data-grid-card > .data-grid-toolbar{
  padding:1rem 1rem .95rem;
  border-bottom:1px solid var(--aw-border);
  background:linear-gradient(180deg,#ffffff 0%, #fbfefe 100%);
}
.data-grid-card > .data-grid-toolbar h5,
.data-grid-card > .data-grid-toolbar .h5{
  font-weight:700;
  color:var(--aw-primary-dark);
}
.data-grid-card > .data-grid-toolbar .small-muted{
  max-width:780px;
}
.data-grid-card > .data-grid-filters{
  margin:0;
  border:none;
  border-bottom:1px solid var(--aw-border);
  border-radius:0;
  box-shadow:none;
  background:linear-gradient(180deg,#f8fbfb 0%, #f3f9f9 100%);
  padding:1rem;
}
.data-grid-card > .data-grid-filters .row{
  --bs-gutter-y:.65rem;
}
.data-grid-card .table-responsive{
  margin:0;
  border-top:none;
}
.data-grid-card .table{
  margin:0;
}
.data-grid-card .table thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:linear-gradient(180deg,#eef7f7 0%, #e7f2f2 100%);
  border-bottom:1px solid #d4e6e6;
  font-size:.84rem;
  font-weight:800;
  letter-spacing:.02em;
}
.data-grid-card .table tbody tr:nth-child(even){
  background:#fcfefe;
}
.data-grid-card .table tbody tr:hover{
  background:#f4fbfb;
}
.data-grid-card .table td,
.data-grid-card .table th{
  padding:.85rem 1rem;
}
.data-grid-card .data-grid-pagination{
  margin:0;
  padding:1rem;
  border-top:1px solid var(--aw-border);
  background:linear-gradient(180deg,#fbfefe 0%, #f7fbfb 100%);
}
.data-grid-card .pagination-field,
.data-grid-card .pagination-nav-wrap{
  background:#fff;
  box-shadow:none;
  border-color:#d8e7e7;
}
.data-grid-card .pagination-nav .btn,
.data-grid-card .pagination-status{
  min-height:40px;
}
.data-grid-card .filter-actions .btn,
.data-grid-card .toolbar-actions .btn{
  min-height:40px;
}
.data-grid-card .filter-actions{
  align-items:center;
}
.data-grid-card .toolbar-actions{
  justify-content:flex-end;
}
.data-grid-card .pagination-summary{
  padding-inline:.15rem;
}
.data-grid-card .mobile-card-table tr{
  box-shadow:none;
}

@media (max-width: 991.98px){
  .data-grid-card{
    border-radius:18px;
  }
  .data-grid-card > .data-grid-toolbar,
  .data-grid-card > .data-grid-filters,
  .data-grid-card .data-grid-pagination{
    padding:.9rem;
  }
}

@media (max-width: 767.98px){
  .data-grid-card > .data-grid-toolbar,
  .data-grid-card > .data-grid-filters,
  .data-grid-card .data-grid-pagination{
    padding:.85rem;
  }
  .data-grid-card .filter-actions,
  .data-grid-card .toolbar-actions{
    gap:.5rem;
  }
  .data-grid-card .mobile-card-table tr{
    background:#fff;
    border-color:#dbe8e8;
    border-radius:14px;
    margin:.2rem .7rem .85rem;
    padding:.75rem .85rem;
  }
  .data-grid-card .table-responsive{
    padding-top:.2rem;
  }
}


/* Phase 50 UI maintenance polish */
:root{
  --aw-shadow-sm:0 10px 26px rgba(16,109,111,.06);
  --aw-shadow-md:0 14px 34px rgba(16,109,111,.09);
  --aw-shadow-lg:0 18px 42px rgba(16,109,111,.12);
}
body.aw-ui-body{
  overflow-x:hidden;
  line-height:1.45;
  text-rendering:optimizeLegibility;
}
img, svg{max-width:100%;height:auto;}
a{color:var(--aw-primary-dark);text-decoration:none;}
a:hover{color:var(--aw-primary);text-decoration:none;}
.row > [class*="col"],
.app-main > *,
.page-toolbar > *,
.toolbar-actions,
.filter-actions,
.table-responsive,
.card,
.content-card,
.form-section-card,
.metric-card,
.detail-item,
.summary-stat,
.list-group-item,
.nav-tabs,
.nav-tabs .nav-link,
.table td,
.table th,
.btn{
  min-width:0;
}
.small-muted{color:#67818a;}
.brand-card,
.content-card,
.metric-card,
.form-section-card,
.filter-card,
.card,
.detail-item,
.summary-stat,
.qr-access-note,
.print-block,
.barcode-card{
  border-color:var(--aw-border);
  box-shadow:var(--aw-shadow-sm);
}
.content-card,
.metric-card,
.form-section-card,
.card,
.filter-card,
.detail-item,
.summary-stat{
  overflow:hidden;
}
.app-header{
  background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--aw-border);
  box-shadow:0 6px 18px rgba(16,109,111,.05);
  backdrop-filter:blur(10px);
}
.desktop-page-header{
  background:rgba(255,255,255,.96);
  border:1px solid var(--aw-border);
  border-radius:22px;
  padding:1.1rem 1.2rem;
  box-shadow:var(--aw-shadow-sm);
}
.page-flash-stack{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem;}
.alert{
  border-radius:16px;
  border:1px solid var(--aw-border);
  box-shadow:0 8px 22px rgba(16,109,111,.06);
  margin-bottom:0;
}
.card{
  border:1px solid var(--aw-border);
  background:#fff;
}
.card-header,
.card-footer{
  background:#fff;
  border-color:#e4efef;
}
.list-group-item{
  border-color:#e7f0f0;
  background:transparent;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.list-group-item-action:hover,
.list-group-item-action:focus{
  background:#f4fbfb;
}
.form-control,
.form-select{
  min-height:46px;
  padding:.72rem .95rem;
  border-color:#cddfdf;
  border-radius:14px;
  background:#fff;
  box-shadow:inset 0 1px 1px rgba(16,109,111,.03);
}
textarea.form-control{min-height:120px;resize:vertical;}
.form-check-input{
  border-color:#b8cdce;
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus{
  border-color:#77b2b3;
  box-shadow:0 0 0 .2rem rgba(23,130,131,.14);
}
.form-label{
  font-weight:600;
  color:#36545d;
}
.btn,
a.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  min-height:44px;
  padding:.68rem 1rem;
  border-radius:14px;
  font-weight:600;
  line-height:1.15;
  letter-spacing:.01em;
  text-align:center;
  vertical-align:middle;
  white-space:normal;
  box-shadow:0 8px 18px rgba(16,109,111,.08);
  transition:transform .14s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover,
a.btn:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(16,109,111,.11);}
.btn:active,
a.btn:active{transform:none;}
.btn:focus-visible,
a.btn:focus-visible{outline:none;box-shadow:0 0 0 .2rem rgba(23,130,131,.16), 0 10px 20px rgba(16,109,111,.11);}
.btn-sm,
a.btn-sm{min-height:36px;padding:.5rem .82rem;border-radius:12px;font-size:.875rem;}
.btn-lg,
a.btn-lg{min-height:50px;padding:.85rem 1.2rem;border-radius:16px;}
.btn-primary{
  background:linear-gradient(180deg, #1b8f91 0%, #157b7d 100%);
  border-color:#157b7d;
}
.btn-primary:hover,
.btn-primary:focus{background:linear-gradient(180deg, #157f80 0%, #106d6f 100%);border-color:#106d6f;}
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-dark,
.btn-reset-filter{
  background:#fff;
}
.btn-outline-secondary{color:#44616a;border-color:#b8cdce;}
.btn-outline-secondary:hover,.btn-outline-secondary:focus{background:#eef7f7;border-color:#97b8b9;color:#1b5051;}
.btn-outline-primary{color:#126f71;border-color:#9bc3c3;}
.btn-outline-primary:hover,.btn-outline-primary:focus{background:#edf8f8;border-color:#7fb0b0;color:#0f5c5d;}
.btn-outline-success{color:#17704a;border-color:#9fc8b5;}
.btn-outline-success:hover,.btn-outline-success:focus{background:#edf9f3;border-color:#82b59c;color:#115939;}
.btn-outline-danger{color:#a03e3e;border-color:#d7afaf;}
.btn-outline-danger:hover,.btn-outline-danger:focus{background:#fff3f3;border-color:#cc9f9f;color:#8c3434;}
.btn-outline-dark{color:#334a53;border-color:#b6c9cd;}
.btn-outline-dark:hover,.btn-outline-dark:focus{background:#f4f8f8;border-color:#9fb8bc;color:#22343b;}
.btn.w-100,
a.btn.w-100{width:100% !important;}
.d-grid > .btn:not(.w-100),
.d-grid > a.btn:not(.w-100){
  width:auto;
  justify-self:start;
}
.page-toolbar,
.toolbar-actions,
.filter-actions,
.form-actions-sticky,
.table-action-group{gap:.65rem;}
.table-action-group .btn{margin:0;}
.table-responsive{
  border:1px solid var(--aw-border);
  border-radius:18px;
  background:#fff;
}
.table{border-collapse:separate;border-spacing:0;}
.table thead th{
  padding:.85rem 1rem;
  font-size:.84rem;
  font-weight:800;
  letter-spacing:.02em;
  border-bottom:1px solid #d7e7e7;
}
.table tbody td{
  padding:.85rem 1rem;
  border-color:#ecf4f4;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.table-striped > tbody > tr:nth-of-type(odd) > *{--bs-table-accent-bg:#fcfefe;}
.table-hover > tbody > tr:hover > *{--bs-table-accent-bg:#f4fbfb;}
.nav-tabs{gap:.5rem;border-bottom:0;}
.nav-tabs .nav-link{
  border:1px solid var(--aw-border);
  border-radius:999px;
  background:#fff;
  padding:.65rem 1rem;
  color:#4a6670;
  font-weight:600;
}
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus{background:#f4fbfb;color:var(--aw-primary-dark);border-color:#b7d0d0;}
.nav-tabs .nav-link.active{
  background:linear-gradient(180deg, #1b8f91 0%, #157b7d 100%);
  color:#fff;
  border-color:#157b7d;
  box-shadow:0 10px 18px rgba(16,109,111,.12);
}
.detail-item,
.summary-stat{
  background:linear-gradient(180deg,#ffffff 0%,#fbfefe 100%);
}
.detail-item-value,
.mobile-table-title,
.mobile-table-subtitle,
.form-section-heading,
.print-title,
.metric-label,
.metric-value,
.table,
.btn,
h1,h2,h3,h4,h5,h6{
  overflow-wrap:anywhere;
}
.equipment-qr-preview img{
  width:140px;
  height:140px;
  object-fit:contain;
  background:#fff;
  padding:10px;
  border:1px solid #dee7e7;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(16,109,111,.08);
}
.login-hero-logo{
  max-width:180px;
  width:100%;
  height:auto;
  filter:drop-shadow(0 10px 22px rgba(16,109,111,.10));
}
.empty-state{padding:1.25rem !important;}
@media (max-width: 991.98px){
  .desktop-page-header{padding:1rem 1.05rem;border-radius:18px;}
  .page-toolbar{align-items:stretch;}
  .page-toolbar .toolbar-actions{width:100%;}
  .page-toolbar .toolbar-actions .btn{flex:0 1 auto;}
}
@media (max-width: 767.98px){
  .app-main{padding:.95rem !important;}
  .desktop-page-header{display:none !important;}
  .content-card,
  .metric-card,
  .form-section-card,
  .card,
  .filter-card,
  .table-responsive{border-radius:16px;}
  .btn,
  a.btn,
  .d-grid > .btn,
  .d-grid > a.btn,
  .page-toolbar .toolbar-actions .btn,
  .filter-actions .btn,
  .form-actions-sticky .btn,
  .table-action-group .btn{
    width:100%;
    justify-self:stretch;
  }
  .table-action-group{display:flex;flex-direction:column;align-items:stretch;}
  .app-header .btn,
  .mobile-inline-btn{
    width:auto;
  }
}

/* Phase 51 UI maintenance, ACL, and print hardening */
.acl-required{color:var(--aw-danger);font-weight:800;margin-left:3px;}
.form-control[disabled],
.form-select[disabled],
textarea.form-control[disabled]{background:#f4f8f8 !important;color:#5d7680 !important;cursor:not-allowed;opacity:1;}
.field-readonly-note{font-size:.78rem;color:#7b8f95;margin-top:.35rem;}

.login-wrap{min-height:calc(100vh - 32px);padding:24px;align-items:center;justify-content:center;}
.login-card{max-width:940px;}
.login-left,.login-right{padding:38px;}
.login-hero-logo{max-width:180px;height:auto;}
@media (max-width: 767.98px){
  .login-wrap{min-height:auto;padding:18px 12px;align-items:center;}
  .login-card{max-width:720px;}
  .login-left,.login-right{padding:20px;}
}

.work-order-wide-table .table{min-width:860px;}
.work-order-summary-card .summary-stat{height:auto;min-height:unset;}
.work-order-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem;}
@media (max-width: 991.98px){
  .work-order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 575.98px){
  .work-order-summary-grid{grid-template-columns:1fr;}
}

.print-page-body{background:#fff;color:#17323A;}
.print-page-toolbar{max-width:980px;margin:18px auto 0;padding:0 16px;}
.print-page-frame{max-width:980px;margin:12px auto 24px;padding:0 16px;}
.print-page-sheet{background:#fff;border:1px solid var(--aw-border);border-radius:18px;padding:24px;box-shadow:0 8px 22px rgba(16,109,111,.06);}
.qr-print-page-wrap{min-height:100vh;display:flex;align-items:flex-start;justify-content:center;padding:24px;}
.qr-print-page-label{width:98mm;min-height:64mm;border:1.5px solid #17323A;border-radius:4mm;padding:5mm;text-align:center;background:#fff;color:#000;}
.qr-print-page-label .qr-label-svg svg{width:42mm;height:42mm;max-width:42mm;}
.qr-print-page-label .qr-print-brand{font-size:13pt;font-weight:800;color:#106D6F;line-height:1.2;}
.qr-print-page-label .qr-print-subtitle{font-size:8.5pt;color:#5d7680;margin-top:1mm;margin-bottom:3mm;}
.qr-print-page-label .qr-print-tag{font-size:11pt;font-weight:800;margin-top:2mm;}
.qr-print-page-label .qr-print-name{font-size:9pt;font-weight:700;line-height:1.25;margin-top:1mm;}
.qr-print-page-label .qr-print-meta{font-size:8pt;color:#5d7680;line-height:1.25;margin-top:1mm;}
@media print{
  .print-page-toolbar{display:none !important;}
  .print-page-frame{max-width:none;margin:0;padding:0;}
  .print-page-sheet{border:none !important;border-radius:0 !important;box-shadow:none !important;padding:0 !important;}
  .qr-print-page-wrap{padding:0 !important;min-height:auto;}
}


/* Phase 52 card edge spacing fix for Users and Document Types */
.users-list-card .table-responsive,
.document-types-card .table-responsive{
  padding:.35rem .95rem .95rem;
}
.users-list-card .table td,
.users-list-card .table th,
.document-types-card .table td,
.document-types-card .table th{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.document-types-card code{
  white-space:normal;
  overflow-wrap:anywhere;
}
.users-list-card .mobile-card-table tr,
.document-types-card .mobile-card-table tr{
  margin:.2rem 0 .85rem;
}
@media (max-width: 991.98px){
  .users-list-card .table-responsive,
  .document-types-card .table-responsive{
    padding:.25rem .8rem .85rem;
  }
}
@media (max-width: 767.98px){
  .users-list-card .table-responsive,
  .document-types-card .table-responsive{
    padding:.2rem .7rem .8rem;
  }
  .users-list-card .table-action-group,
  .document-types-card .table-action-group{
    width:100%;
  }
}

/* Phase 63/135 equipment detail classic UI restore */
.equipment-detail-shell{
  overflow:visible;
  padding:1.15rem 1.15rem 1.05rem;
}
.equipment-detail-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1.15rem;
  flex-wrap:wrap;
  padding-bottom:.2rem;
}
.equipment-detail-header-main{flex:1 1 340px;min-width:0;}
.equipment-detail-eyebrow{
  font-size:.76rem;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  color:#5d7680;
  margin-bottom:.45rem;
}
.equipment-detail-title{
  color:var(--aw-primary-dark);
  font-weight:800;
  line-height:1.2;
  word-break:break-word;
  margin-bottom:.4rem !important;
}
.equipment-detail-meta{display:flex;flex-wrap:wrap;gap:.55rem;}
.equipment-meta-pill{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  padding:.5rem .8rem;
  border:1px solid var(--aw-border);
  background:#f8fbfb;
  border-radius:999px;
  color:#456068;
  font-size:.86rem;
  max-width:100%;
  word-break:break-word;
}
.equipment-detail-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  align-items:stretch;
}
.equipment-detail-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:.72rem 1rem;
  text-align:center;
  white-space:normal;
  line-height:1.2;
  max-width:100%;
  border-radius:16px;
}
.equipment-detail-tabs{
  gap:.55rem;
  border-bottom:0;
  margin-top:1.1rem !important;
}
.equipment-detail-tabs .nav-item{
  margin-bottom:.15rem;
}
.equipment-detail-tabs .nav-link{
  font-weight:700;
  padding:.68rem 1.05rem;
  border:1px solid var(--aw-border);
  border-radius:999px;
  background:#fff;
  color:#35525c;
}
.equipment-detail-tabs .nav-link:hover{
  background:#f4fbfb;
  color:var(--aw-primary-dark);
  border-color:#bdd4d5;
}
.equipment-detail-tabs .nav-link.active{
  background:linear-gradient(180deg, #2c9194, #257f82);
  border-color:#257f82;
  color:#fff;
}
.equipment-detail-tab-body{min-width:0;}
.equipment-summary-grid{align-items:stretch;}
.equipment-detail-item-wide{grid-column:1 / -1;}
.equipment-inline-card{
  background:#fff;
  border:1px solid var(--aw-border);
  border-radius:18px;
  padding:1.05rem 1.1rem;
  box-shadow:0 4px 16px rgba(16,109,111,.04);
  min-width:0;
}
.equipment-folder-key-box{
  background:#f8fbfb;
  border:1px solid var(--aw-border);
  border-radius:16px;
  padding:.9rem 1rem;
  margin-top:.35rem;
}
.equipment-folder-key-box .detail-item-label{
  margin-bottom:.3rem;
}
.equipment-folder-key-box .detail-item-value{
  font-size:1.02rem;
}
.equipment-qr-card{display:flex;align-items:center;gap:1rem;}
.equipment-qr-copy{min-width:0;flex:1 1 320px;}
.equipment-inline-actions .btn{min-height:38px;}
.equipment-detail-table td,.equipment-detail-table th{vertical-align:middle;}
.equipment-timeline-list .list-group-item{border-color:var(--aw-border);}

@media (max-width: 991.98px){
  .equipment-detail-shell{padding:1rem;}
  .equipment-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
  .equipment-detail-actions .btn{width:100%;}
  .equipment-qr-card{flex-direction:column;align-items:flex-start;}
}

@media (max-width: 767.98px){
  .equipment-detail-header{gap:1rem;}
  .equipment-detail-title{font-size:1.15rem;}
  .equipment-detail-meta{gap:.45rem;}
  .equipment-meta-pill{width:100%;border-radius:14px;justify-content:flex-start;}
  .equipment-detail-tabs{gap:.45rem;}
  .equipment-detail-tabs .nav-link{
    width:100%;
    border-radius:16px;
  }
  .equipment-detail-actions{grid-template-columns:1fr;}
  .equipment-inline-card{padding:.95rem 1rem;border-radius:16px;}
  .equipment-folder-key-box{padding:.85rem .95rem;}
  .equipment-qr-preview{margin-inline:auto;}
  .equipment-qr-preview img{max-width:180px;}
}


/* Phase 64 global responsive maintenance */
html, body{
  max-width:100%;
  overflow-x:hidden;
}
iframe, embed, object, video, canvas{
  max-width:100%;
}
.app-main{
  width:100%;
  margin:0 auto;
}
.content-card,
.form-section-card,
.metric-card,
.filter-card,
.card,
.table-responsive,
.list-group,
.tab-content,
.nav,
.modal-content,
.offcanvas,
.dropdown-menu{
  max-width:100%;
}
.table,
.table td,
.table th,
.form-control,
.form-select,
.btn,
.badge,
.alert,
.nav-link,
.list-group-item,
.dropdown-item{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.page-toolbar,
.filter-actions,
.form-actions-sticky,
.table-action-group,
.equipment-detail-actions,
.d-flex.gap-2.flex-wrap,
.d-flex.gap-3.flex-wrap{
  align-items:stretch;
}
.table-responsive{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.table-responsive > .table{
  min-width:0;
}
.content-card > .table-responsive,
.form-section-card > .table-responsive,
.card-body > .table-responsive{
  margin-top:.25rem;
}
/* Phase 75: remove duplicated column labels inside row cells on all viewports */
.aw-auto-mobile-table td[data-label]::before,
.mobile-card-table td[data-label]::before{
  content:none !important;
  display:none !important;
}
.aw-auto-mobile-table td.actions-cell::before,
.mobile-card-table td.actions-cell::before{
  margin-bottom:0 !important;
}
@media (max-width: 1199.98px){
  .app-main{padding:1rem !important;}
  .content-card,
  .form-section-card,
  .metric-card,
  .filter-card,
  .card-body,
  .card-header,
  .card-footer{
    padding-left:1rem;
    padding-right:1rem;
  }
  .table-responsive{
    border-radius:16px;
  }
}
@media (max-width: 991.98px){
  .app-header{
    padding:.8rem .9rem;
  }
  .app-main{
    padding:.95rem !important;
  }
  .content-card,
  .form-section-card,
  .metric-card,
  .filter-card,
  .card,
  .table-responsive{
    border-radius:16px;
  }
  .content-card,
  .form-section-card,
  .metric-card,
  .filter-card,
  .card-body{
    padding:.95rem;
  }
  .table thead th,
  .table tbody td{
    padding:.78rem .85rem;
  }
  .page-toolbar .toolbar-actions,
  .filter-actions,
  .form-actions-sticky,
  .table-action-group,
  .equipment-detail-actions,
  .d-flex.gap-2.flex-wrap,
  .d-flex.gap-3.flex-wrap{
    width:100%;
  }
  .table-action-group{
    justify-content:flex-start;
  }
  .content-card .row,
  .form-section-card .row,
  .card-body .row{
    --bs-gutter-x:1rem;
  }
}
@media (max-width: 767.98px){
  .app-header{
    padding:.75rem .8rem;
  }
  .app-main{
    padding:.85rem !important;
  }
  .content-card,
  .form-section-card,
  .metric-card,
  .filter-card,
  .card,
  .table-responsive{
    border-radius:15px;
  }
  .content-card,
  .form-section-card,
  .metric-card,
  .filter-card,
  .card-body,
  .card-header,
  .card-footer{
    padding:.85rem;
  }
  .table-responsive{
    overflow:visible;
    border:none;
    background:transparent;
    box-shadow:none;
  }
  .table-responsive > .table{
    margin-bottom:0;
  }
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) thead{
    display:none;
  }
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table),
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) tbody,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) tr,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td{
    display:block;
    width:100%;
  }
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) tr{
    background:#fff;
    border:1px solid var(--aw-border);
    border-radius:16px;
    padding:.78rem .9rem;
    margin-bottom:.85rem;
    box-shadow:0 4px 14px rgba(16,109,111,.05);
  }
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td{
    border:none !important;
    padding:.32rem 0 !important;
    text-align:left !important;
    white-space:normal;
  }
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td.actions-cell,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td:last-child:last-child{
    padding-top:.55rem !important;
    margin-top:.35rem;
    border-top:1px dashed var(--aw-border) !important;
  }
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td .btn{
    min-height:38px;
    width:100%;
  }
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td.empty-state{
    text-align:center !important;
    border-top:none !important;
    margin-top:0;
  }
  .btn,
  a.btn,
  .page-toolbar .toolbar-actions .btn,
  .filter-actions .btn,
  .form-actions-sticky .btn,
  .table-action-group .btn,
  .equipment-detail-actions .btn{
    width:100%;
  }
  .app-header .btn,
  .mobile-inline-btn,
  .pagination-nav .btn,
  .pagination-jump-group .btn{
    width:auto;
  }
  .nav-tabs,
  .mobile-tabs{
    padding-bottom:.4rem;
    gap:.4rem;
    scroll-padding-inline:.5rem;
  }
  .nav-tabs .nav-link,
  .mobile-tabs .nav-link{
    padding:.58rem .9rem;
    font-size:.92rem;
  }
  .page-toolbar,
  .filter-actions,
  .form-actions-sticky,
  .table-action-group,
  .equipment-detail-actions,
  .d-flex.gap-2.flex-wrap,
  .d-flex.gap-3.flex-wrap{
    gap:.55rem;
  }
  .modal-dialog{
    margin:.65rem;
  }
}


/* Phase 65 high-traffic page polish */
.aw-page-shell{display:flex;flex-direction:column;gap:0;}
.aw-page-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.15rem 1.2rem;background:linear-gradient(180deg, rgba(23,130,131,.07), rgba(255,255,255,.92));}
.aw-page-hero-dashboard{align-items:center;}
.aw-page-hero-copy{min-width:0;}
.aw-page-kicker{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--aw-primary-dark);margin-bottom:.35rem;}
.aw-page-title{font-size:1.35rem;font-weight:700;color:var(--aw-text);line-height:1.2;}
.aw-page-subtitle{max-width:900px;color:#5c747d;line-height:1.5;}
.aw-page-hero-aside,.aw-toolbar-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:.55rem;flex-wrap:wrap;}
.aw-hero-pill{display:flex;flex-direction:column;gap:.1rem;padding:.8rem .95rem;border:1px solid var(--aw-border);border-radius:16px;background:#fff;min-width:136px;}
.aw-hero-pill-label{font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#668087;}
.aw-hero-pill-value{font-weight:700;color:var(--aw-primary-dark);}
.aw-polish-card{padding:1.1rem;}
.aw-kpi-card{display:flex;flex-direction:column;justify-content:space-between;gap:.35rem;min-height:148px;}
.aw-kpi-card .metric-value{font-size:2rem;}
.aw-kpi-link{display:block;color:inherit;text-decoration:none;}
.aw-kpi-link:hover{color:inherit;text-decoration:none;}
.aw-kpi-card-clickable{cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;}
.aw-kpi-card-clickable:hover{transform:translateY(-1px);border-color:#bfd7d8;box-shadow:0 8px 20px rgba(16,109,111,.09);}
.aw-kpi-alert{background:linear-gradient(180deg, rgba(216,155,29,.08), #fff);}
.aw-section-card{padding:1.1rem;}
.aw-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;}
.aw-section-kicker{font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6b828a;margin-bottom:.2rem;}
.aw-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;}
.aw-link-grid-large{grid-template-columns:repeat(3,minmax(0,1fr));}
.aw-link-card{display:flex;flex-direction:column;gap:.4rem;padding:1rem 1.05rem;border:1px solid var(--aw-border);border-radius:16px;background:#fff;text-decoration:none;color:inherit;transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;background:linear-gradient(180deg,#fff, #f9fcfc);}
.aw-link-card:hover{transform:translateY(-1px);border-color:#bfd7d8;box-shadow:0 8px 20px rgba(16,109,111,.06);color:inherit;}
.aw-link-card-static:hover{transform:none;box-shadow:none;}
.aw-link-card-title{font-weight:700;color:var(--aw-text);}
.aw-link-card-text{font-size:.92rem;color:#5d7680;line-height:1.45;}
.aw-activity-list{display:flex;flex-direction:column;gap:.7rem;}
.aw-activity-list.compact{gap:.55rem;}
.aw-activity-item{display:block;padding:.85rem .95rem;border:1px solid var(--aw-border);border-radius:14px;background:#fff;text-decoration:none;color:inherit;transition:background .15s ease,border-color .15s ease;}
.aw-activity-item:hover{background:#fbfefe;border-color:#bfd7d8;color:inherit;}
.aw-activity-title{font-weight:700;color:var(--aw-text);}
.aw-activity-text{color:#4f6a73;line-height:1.45;}
.aw-activity-meta{font-size:.84rem;color:#70858d;margin-top:.1rem;}
.aw-empty-note{padding:.95rem 1rem;border:1px dashed var(--aw-border);border-radius:14px;background:#fbfefe;color:#738890;}
.aw-mini-panel{padding:.95rem;border:1px solid var(--aw-border);border-radius:16px;background:#fcfefe;}
.aw-mini-panel-title{font-size:.8rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#678089;margin-bottom:.7rem;}
.aw-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem;}
.aw-overview-item{padding:.95rem 1rem;border:1px solid var(--aw-border);border-radius:16px;background:#fbfefe;min-width:0;}
.aw-overview-label{font-size:.75rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#6d838b;margin-bottom:.25rem;}
.aw-overview-value{font-weight:700;color:var(--aw-text);line-height:1.45;word-break:break-word;}
.aw-detail-stack{display:flex;flex-direction:column;gap:.9rem;}
.aw-detail-panel{padding:1rem 1.05rem;border:1px solid var(--aw-border);border-radius:16px;background:#fff;}
.aw-detail-panel-label{font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6d838b;margin-bottom:.35rem;}
.aw-detail-panel-value{white-space:pre-wrap;line-height:1.6;word-break:break-word;}
.aw-inline-link-card{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.05rem;border:1px solid var(--aw-border);border-radius:16px;background:#fbfefe;flex-wrap:wrap;}
.aw-inline-link-card-label{font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6d838b;margin-bottom:.2rem;}
.aw-inline-link-card-value{font-weight:700;}
.aw-reference-list{display:flex;flex-direction:column;gap:.7rem;}
.aw-reference-item{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:.95rem 1rem;border:1px solid var(--aw-border);border-radius:16px;background:#fff;flex-wrap:wrap;}
.aw-reference-main{min-width:0;flex:1;}
.aw-reference-title{font-weight:700;word-break:break-word;}
.aw-reference-meta{font-size:.9rem;color:#6a7f87;line-height:1.45;word-break:break-word;}
.aw-filter-shell{border-radius:18px;}
.aw-filter-actions{display:flex;gap:.55rem;flex-wrap:wrap;}
.aw-polish-table thead th{background:#f3f9f9;border-bottom-color:#d8e8e8;}
.aw-equipment-context-card{padding:1rem 1.05rem;border:1px solid var(--aw-border);border-radius:18px;background:linear-gradient(180deg, rgba(23,130,131,.06), rgba(255,255,255,.96));}
.aw-form-section{padding:1rem 1.05rem;}
.aw-form-shell textarea.form-control{resize:vertical;}
.aw-check-block{display:flex;align-items:center;gap:.7rem;padding:.8rem .9rem;border:1px solid var(--aw-border);border-radius:14px;background:#fbfefe;min-height:100%;}
.aw-check-block.form-check{padding-left:.9rem;margin-bottom:0;}
.aw-check-block .form-check-input{position:static;float:none;margin:0;flex:0 0 auto;}
.aw-check-block .form-check-label{margin:0;font-weight:600;color:#24444d;}
.aw-inline-entry-form{padding-top:.35rem;}
@media (max-width: 1199.98px){
  .aw-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .aw-link-grid-large{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 991.98px){
  .aw-page-hero{padding:1rem;}
  .aw-page-title{font-size:1.2rem;}
  .aw-page-hero,.aw-section-head,.aw-inline-link-card,.aw-reference-item{flex-direction:column;align-items:stretch;}
  .aw-hero-pill{min-width:0;}
  .aw-link-grid,.aw-link-grid-large,.aw-overview-grid{grid-template-columns:1fr;}
}
@media (max-width: 767.98px){
  .aw-polish-card,.aw-section-card{padding:.95rem;}
  .aw-page-hero{border-radius:16px;padding:.95rem;}
  .aw-activity-item,.aw-link-card,.aw-reference-item,.aw-overview-item,.aw-detail-panel,.aw-equipment-context-card,.aw-mini-panel{border-radius:14px;}
  .aw-toolbar-actions > form,.aw-toolbar-actions .d-inline,.aw-toolbar-actions .d-inline-block{width:100%;}
  .aw-toolbar-actions .btn,.aw-toolbar-actions form .btn,.aw-filter-actions .btn{width:100%;}
}

/* Phase 66 remaining operational page polish + menu toggle */
.section-divider{height:1px;background:linear-gradient(90deg, rgba(217,232,232,0), rgba(217,232,232,.95), rgba(217,232,232,0));margin:1rem 0;}
.aw-soft-note{padding:.9rem 1rem;border:1px solid var(--aw-border);border-radius:14px;background:#fbfefe;color:#607981;}
.aw-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem;}
.aw-stat-card{padding:1rem 1.05rem;border:1px solid var(--aw-border);border-radius:16px;background:linear-gradient(180deg, rgba(23,130,131,.05), #fff);min-width:0;}
.aw-stat-label{font-size:.76rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#6b828a;margin-bottom:.2rem;}
.aw-stat-value{font-size:1.35rem;font-weight:800;color:var(--aw-primary-dark);line-height:1.2;word-break:break-word;}
.aw-record-card{padding:1rem 1.05rem;border:1px solid var(--aw-border);border-radius:16px;background:#fff;height:100%;box-shadow:0 4px 16px rgba(16,109,111,.04);}
.aw-record-card-title{font-weight:700;color:var(--aw-text);word-break:break-word;}
.aw-record-card-meta{font-size:.9rem;color:#667f87;line-height:1.5;word-break:break-word;}
.aw-record-card-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.85rem;}
.aw-card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;}
.aw-compact-table thead th{background:#f5fbfb;border-bottom:1px solid var(--aw-border);}
.aw-pill-badge{display:inline-flex;align-items:center;padding:.38rem .65rem;border-radius:999px;background:#eef7f7;color:var(--aw-primary-dark);font-weight:700;font-size:.78rem;}
.aw-layout-two{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:1rem;}
.aw-layout-sidebar{display:flex;flex-direction:column;gap:1rem;}
.aw-actions-stack{display:flex;gap:.55rem;flex-wrap:wrap;}
.aw-filter-shell .row > [class*='col-']{margin-top:0;}
.aw-page-shell .filter-card{margin:0 1.1rem 1.1rem;}
.aw-page-shell .table-responsive, .aw-page-shell .content-card-inner{padding:0 1.1rem 1.1rem;}
.aw-page-shell .table-responsive:first-of-type{padding-top:0;}
.aw-page-shell .pagination-toolbar{margin:0 1.1rem 1.1rem;}
.aw-page-shell .aw-polish-card, .aw-page-shell .aw-section-card{box-shadow:none;border:0;border-top:1px solid rgba(217,232,232,.8);border-radius:0;}
.aw-page-shell .aw-page-hero + .aw-polish-card, .aw-page-shell .aw-page-hero + .aw-section-card, .aw-page-shell .aw-page-hero + .filter-card{border-top:0;}
.aw-page-shell-tight .aw-page-hero{padding-bottom:1rem;}
.aw-table-summary{padding:0 1.1rem 1rem;color:#627b83;font-size:.92rem;}
@media (max-width: 1199.98px){
  .aw-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .aw-layout-two{grid-template-columns:1fr;}
}
@media (max-width: 991.98px){
  .desktop-sidebar-reveal{display:none !important;}
}
@media (max-width: 767.98px){
  .aw-card-list,.aw-stat-grid{grid-template-columns:1fr;}
  .aw-page-shell .filter-card, .aw-page-shell .table-responsive, .aw-page-shell .content-card-inner, .aw-page-shell .pagination-toolbar, .aw-table-summary{margin:0 .95rem .95rem;padding-left:0;padding-right:0;}
  .aw-page-shell .table-responsive{padding-bottom:0;}
  .aw-record-card,.aw-stat-card{border-radius:14px;}
  .aw-record-card-actions .btn,.aw-actions-stack .btn{width:100%;}
}


/* Phase 67 record-detail and master-data polish */
.record-page{max-width:1100px;margin-inline:auto;}
.record-page--narrow{max-width:760px;}
.record-page--medium{max-width:920px;}
.record-page--wide{max-width:1080px;}
.record-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;}
.record-title-wrap{min-width:0;}
.record-subtitle{color:#5d7680;font-size:.92rem;line-height:1.45;max-width:72ch;}
.record-meta-chip{display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--aw-border);background:#f7fbfb;border-radius:999px;padding:.38rem .75rem;font-size:.82rem;font-weight:700;color:var(--aw-primary-dark);margin-top:.55rem;max-width:100%;}
.record-header .toolbar-actions{display:flex;gap:.55rem;flex-wrap:wrap;align-items:center;}
.record-page .form-shell{gap:1.15rem;}
.record-page .form-section-card{padding:1.05rem 1.1rem;}
.record-page .form-section-heading{display:flex;align-items:center;gap:.55rem;margin-bottom:1rem;}
.record-page .form-section-heading::before{content:'';width:10px;height:10px;border-radius:999px;background:linear-gradient(135deg,var(--aw-primary),var(--aw-soft));box-shadow:0 0 0 .25rem rgba(23,130,131,.10);flex:0 0 auto;}
.record-page .record-help-note,
.record-page .record-inline-note{font-size:.84rem;color:#5d7680;background:#f8fbfb;border:1px solid var(--aw-border);border-radius:14px;padding:.7rem .8rem;}
.record-page .form-check-row{display:flex;flex-wrap:wrap;gap:1rem 1.35rem;align-items:center;padding-top:.2rem;}
.record-page .form-check-card{background:#f8fbfb;border:1px solid var(--aw-border);border-radius:14px;padding:.75rem .9rem;height:100%;}
.record-page .form-check-card .form-check{margin-bottom:0;}
.record-page .form-check-card .form-check-label{font-weight:600;color:#24444d;}
.record-page .stacked-note{display:flex;flex-direction:column;gap:.2rem;}
.record-page .table-section-card .table thead th{font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;}
.record-page .section-muted-caption{font-size:.8rem;color:#6b8289;margin-top:-.4rem;margin-bottom:.8rem;}
.permission-module-card{background:#fff;border:1px solid var(--aw-border);border-radius:18px;padding:1rem;height:100%;box-shadow:0 4px 16px rgba(16,109,111,.04);}
.permission-tile{background:#f8fbfb;border:1px solid var(--aw-border);border-radius:14px;padding:.8rem .9rem;display:flex;flex-direction:column;gap:.5rem;height:100%;}
.permission-tile .permission-meta{font-size:.82rem;color:#5d7680;}
.settings-section-card{border:1px solid var(--aw-border);border-radius:18px;padding:1rem;background:#fff;box-shadow:0 4px 16px rgba(16,109,111,.04);}
.settings-section-card .section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;}
.settings-section-card .section-title{font-size:.96rem;font-weight:800;color:var(--aw-primary-dark);letter-spacing:.03em;}
.master-detail-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:1rem;}
.master-detail-card{background:#fff;border:1px solid var(--aw-border);border-radius:18px;padding:1rem;box-shadow:0 4px 16px rgba(16,109,111,.04);height:100%;}
.master-detail-card .detail-label{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:#5d7680;font-weight:700;margin-bottom:.25rem;}
.master-detail-card .detail-value{font-weight:600;color:#17323A;word-break:break-word;}
.data-grid-shell,.data-grid-card{padding:1.1rem 1.1rem .95rem;}
.data-grid-header,.data-grid-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;}
.data-grid-shell .table-responsive,.data-grid-card .table-responsive{border:1px solid var(--aw-border);border-radius:16px;overflow:hidden;background:#fff;}
.data-grid-shell .table,.data-grid-card .table{margin-bottom:0;}
.data-grid-shell .empty-state,.data-grid-card .empty-state{padding:1.5rem 1rem !important;}
.system-config-grid .form-label{font-weight:700;color:#23454f;}
.system-config-grid .small.text-muted code{font-size:.78rem;}
@media (max-width: 991.98px){
  .record-header .toolbar-actions{width:100%;}
  .record-header .toolbar-actions .btn{flex:1 1 190px;}
  .master-detail-layout{grid-template-columns:1fr;}
}
@media (max-width: 767.98px){
  .record-page{max-width:100%;}
  .record-page .form-section-card{padding:.95rem .9rem;}
  .record-subtitle{font-size:.88rem;}
  .record-header .toolbar-actions .btn{width:100%;}
  .record-meta-chip{border-radius:14px;white-space:normal;}
  .data-grid-shell,.data-grid-card{padding:.95rem .9rem .9rem;}
}

/* Phase 68 support/admin consistency polish */
.support-page{display:flex;flex-direction:column;gap:1rem;}
.support-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr);gap:1rem;align-items:start;}
.support-grid--balanced{grid-template-columns:repeat(2,minmax(0,1fr));}
.support-side-stack{display:flex;flex-direction:column;gap:1rem;}
.support-card{padding:1.1rem 1.15rem;}
.support-subcard{padding:0;border:1px solid #e0ecec;background:#fcfefe;box-shadow:none;}
.support-subcard .support-section-head{padding:1rem 1rem 0;}
.support-subcard .table-responsive{padding:0 1rem 1rem;}
.support-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;}
.support-action-row{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;}
.support-action-row form{margin:0;}
.support-step-list{margin:0;padding-left:1.05rem;display:flex;flex-direction:column;gap:.65rem;color:#4f6871;}
.support-bullet-list{margin:0;padding-left:1.05rem;display:flex;flex-direction:column;gap:.55rem;color:#4f6871;}
.support-chip-list{display:flex;flex-wrap:wrap;gap:.5rem;}
.support-chip{display:inline-flex;align-items:center;padding:.42rem .72rem;border-radius:999px;background:#eef7f7;border:1px solid #d5e6e6;color:var(--aw-primary-dark);font-size:.82rem;font-weight:700;}
.support-command-list{display:flex;flex-direction:column;gap:.55rem;}
.support-command-item{padding:.72rem .85rem;border:1px solid var(--aw-border);border-radius:14px;background:#fbfefe;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;font-size:.87rem;color:#214049;word-break:break-word;}
.support-note-strip{display:flex;flex-wrap:wrap;gap:.65rem 1rem;align-items:center;color:#536c75;font-size:.92rem;}
.support-note-strip-warning{font-weight:700;color:#8b6411;}
.support-note-block{padding:.9rem 1rem;border:1px solid var(--aw-border);border-radius:16px;background:#fbfefe;}
.support-note-label{font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6b828a;margin-bottom:.2rem;}
.support-break-all{word-break:break-all;}
.support-job-stack{display:flex;flex-direction:column;gap:.9rem;}
.support-job-form{padding:.9rem 1rem;border:1px solid var(--aw-border);border-radius:16px;background:#fbfefe;}
.auth-standalone-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:linear-gradient(180deg,#f4f9f9,#eef5f5);}
.auth-standalone-card{width:min(980px,100%);background:#fff;border:1px solid #d8e8e8;border-radius:28px;box-shadow:0 20px 50px rgba(16,109,111,.10);overflow:hidden;}
.auth-standalone-grid{display:grid;grid-template-columns:minmax(280px,.95fr) minmax(0,1.05fr);}
.auth-standalone-brand{padding:2rem;background:linear-gradient(180deg,rgba(23,130,131,.08),rgba(255,255,255,.96));display:flex;flex-direction:column;justify-content:center;}
.auth-standalone-brand img{max-width:180px;width:100%;height:auto;}
.auth-standalone-kicker{margin-top:1.25rem;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#678089;}
.auth-standalone-brand h1{margin:.4rem 0 .65rem;font-size:1.85rem;font-weight:800;color:#17323A;}
.auth-standalone-brand p{margin:0;color:#556f77;line-height:1.6;}
.auth-standalone-form{padding:2rem;display:flex;flex-direction:column;justify-content:center;}
.auth-standalone-form-head{margin-bottom:1.1rem;}
@media (max-width: 1199.98px){
  .support-grid{grid-template-columns:1fr;}
}
@media (max-width: 767.98px){
  .support-card{padding:.95rem;}
  .support-action-row .btn,.support-action-row form,.support-action-row form .btn{width:100%;}
  .auth-standalone-shell{padding:1rem;align-items:flex-start;}
  .auth-standalone-grid{grid-template-columns:1fr;}
  .auth-standalone-brand,.auth-standalone-form{padding:1.25rem;}
  .auth-standalone-brand h1{font-size:1.55rem;}
}


/* Phase 69 micro-polish for utility controls and small screens */
.pagination-toolbar.aw-utility-toolbar{
  border-top:1px solid var(--aw-border);
  padding:1rem;
  background:linear-gradient(180deg,#fbfefe 0%, #f6fbfb 100%);
  border-radius:0 0 20px 20px;
}
.pagination-kicker{
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#6f858d;
  margin-bottom:.18rem;
}
.pagination-summary{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.1rem;
}
.pagination-field,
.pagination-nav-wrap{
  background:linear-gradient(180deg,#ffffff 0%, #fbfefe 100%);
}
.pagination-nav .btn,
.pagination-status{
  border-radius:12px !important;
}
.pagination-status{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.empty-state,
.table td.empty-state,
.table-responsive td.empty-state{
  padding:1.3rem 1rem !important;
  color:#738890 !important;
  background:linear-gradient(180deg,#fcfefe 0%, #f8fbfb 100%) !important;
  font-weight:600;
}
.aw-empty-card{
  padding:1.2rem 1.15rem;
  border:1px dashed var(--aw-border);
  border-radius:18px;
  background:linear-gradient(180deg,#fcfefe 0%, #f8fbfb 100%);
}
.aw-empty-card-title{
  font-weight:700;
  color:var(--aw-primary-dark);
  margin-bottom:.25rem;
}
.aw-empty-card-text{
  color:#6d838b;
  line-height:1.5;
}
.aw-confirm-band{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
  flex-wrap:wrap;
  padding:1rem 1.05rem;
  border:1px solid var(--aw-border);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(23,130,131,.05), rgba(255,255,255,.96));
}
.aw-confirm-title{
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:#5f7881;
  margin-bottom:.25rem;
}
.aw-confirm-actions{
  display:flex;
  align-items:center;
  gap:.55rem;
  flex-wrap:wrap;
}
.aw-code-block{
  white-space:pre-wrap;
  max-height:320px;
  overflow:auto;
  margin:0;
  font-size:.86rem;
  line-height:1.55;
}
.aw-inline-code{
  display:block;
  white-space:pre-wrap;
  word-break:break-word;
  overflow-wrap:anywhere;
  color:#334f57;
  background:transparent;
  padding:0;
  font-size:.86rem;
  line-height:1.55;
}
.aw-timeline-list{gap:.85rem;}
.aw-timeline-item{position:relative;align-items:stretch;background:linear-gradient(180deg,#ffffff 0%, #fbfefe 100%);}
.aw-timeline-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;flex-wrap:wrap;}
.aw-timeline-change-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;}
.aw-change-panel{height:100%;}
.aw-overview-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr));}
.aw-utility-accordion .accordion-item{
  border:1px solid var(--aw-border) !important;
  box-shadow:var(--aw-shadow-sm);
}
.aw-utility-accordion .accordion-button{
  background:linear-gradient(180deg,#ffffff 0%, #f7fbfb 100%);
  font-weight:700;
  color:var(--aw-text);
}
.aw-utility-accordion .accordion-button:not(.collapsed){
  color:var(--aw-primary-dark);
  box-shadow:none;
}
.modal-content{
  border:1px solid var(--aw-border);
  border-radius:22px;
  box-shadow:var(--aw-shadow-lg);
  overflow:hidden;
}
.modal-header,
.modal-footer{border-color:#e5efef;background:#fff;}
.modal-header{padding:1rem 1.15rem;}
.modal-footer{padding:.9rem 1.15rem;}
@media (max-width: 991.98px){
  .aw-confirm-band,
  .aw-timeline-head{flex-direction:column;align-items:stretch;}
  .aw-overview-grid-compact,
  .aw-timeline-change-grid{grid-template-columns:1fr;}
}
@media (max-width: 575.98px){
  .pagination-toolbar.aw-utility-toolbar{padding:.85rem;}
  .pagination-panel{width:100%;}
  .pagination-field{width:100%;}
  .pagination-select{width:100%;min-width:0;}
  .aw-empty-card,
  .aw-confirm-band{padding:.95rem;}
}


/* Phase 72/75 mobile table label cleanup */
@media (max-width: 767.98px){
  .mobile-card-table td,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td{
    padding:.22rem 0 !important;
  }
  .mobile-card-table td .mobile-table-title,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td .mobile-table-title{
    margin-bottom:.12rem;
  }
  .mobile-card-table td.actions-cell,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td.actions-cell,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td:last-child:last-child{
    padding-top:.6rem !important;
    margin-top:.45rem;
  }
}


/* Phase 73 mobile table first-value emphasis */
@media (max-width: 767.98px){
  .mobile-card-table tr,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) tr{
    padding-top:.9rem;
  }
  .mobile-card-table td:first-child,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td:first-child{
    padding-top:0 !important;
    margin-bottom:.24rem;
  }
  .mobile-card-table td:first-child strong,
  .mobile-card-table td:first-child b,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td:first-child strong,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td:first-child b{
    font-size:1rem;
    line-height:1.3;
    font-weight:800;
    color:var(--aw-primary-dark);
  }
  .mobile-card-table td:first-child .text-muted,
  .mobile-card-table td:first-child small,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td:first-child .text-muted,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td:first-child small{
    display:block;
    margin-top:.08rem;
  }
  .mobile-card-table td:first-child .badge,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td:first-child .badge{
    margin-top:.18rem;
  }
  .mobile-card-table td:first-child > :first-child,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td:first-child > :first-child{
    margin-top:0;
  }
}

/* Phase 80 signature pad + work order approval workflow */
.signature-pad-shell{
  border:1px solid var(--aw-border);
  border-radius:18px;
  background:#fff;
  padding:10px;
}
.signature-pad-canvas{
  width:100%;
  min-height:300px;
  display:block;
  background:#fff;
  border:1px dashed rgba(13,116,118,.24);
  border-radius:14px;
  touch-action:none;
}
.signature-preview-wrap,
.empty-state-box{
  border:1px solid var(--aw-border);
  border-radius:16px;
  min-height:120px;
  background:#fff;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.signature-preview-image{
  max-width:100%;
  max-height:120px;
  object-fit:contain;
  display:block;
}
.report-signoff-card{
  border:1px solid var(--aw-border);
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  padding:16px;
}
.report-signoff-title{
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--aw-primary);
  margin-bottom:12px;
}
.report-signoff-line{
  margin-top:8px;
}
.report-signature-box{
  min-height:74px;
  border:1px solid var(--aw-border);
  border-radius:14px;
  background:#fff;
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-top:6px;
}
.report-signature-image{
  max-width:100%;
  max-height:56px;
  display:block;
  object-fit:contain;
}
.approval-closure-band{
  border:1px solid var(--aw-border);
  border-radius:16px;
  background:var(--aw-soft);
  padding:14px 16px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
@media (max-width: 767.98px){
  .approval-closure-band{
    align-items:flex-start;
  }
  .signature-pad-canvas{
    min-height:220px;
  }
}


/* Phase 88 settings center cleanup + consistent filter action spacing */
.aw-settings-center .aw-page-hero{margin-bottom:1.1rem;}
.aw-settings-shell{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.75fr);gap:1rem;align-items:start;}
.aw-settings-main,.aw-settings-side{display:flex;flex-direction:column;gap:1rem;min-width:0;}
.aw-settings-section{padding:1.1rem 1.15rem;}
.aw-settings-section .aw-link-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.aw-settings-migration-note{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;}
.aw-settings-side .table-responsive{margin-top:.15rem;}
.aw-filter-shell .aw-filter-actions,
.aw-filter-shell .filter-actions,
.filter-card .aw-filter-actions,
.filter-card .filter-actions,
form .aw-filter-actions,
form .filter-actions{margin-top:.35rem;padding-top:.2rem;row-gap:.55rem;}
.data-grid-filters .aw-filter-actions,
.data-grid-filters .filter-actions{margin-top:.45rem;}
@media (max-width: 1199.98px){
  .aw-settings-shell{grid-template-columns:1fr;}
  .aw-settings-side{order:2;}
}
@media (max-width: 767.98px){
  .aw-settings-section .aw-link-grid,
  .aw-settings-migration-note{grid-template-columns:1fr;}
  .aw-settings-section{padding:1rem;}
}


/* Phase 90 deletion summaries and compact work order print helpers */
.aw-delete-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;}
.aw-delete-summary-card{padding:1rem 1.05rem;border:1px solid var(--aw-border);border-radius:16px;background:linear-gradient(180deg,#fff, #fbfdfd);min-width:0;}
.aw-delete-summary-title{font-weight:800;color:var(--aw-text);margin-bottom:.25rem;word-break:break-word;}
.aw-delete-summary-meta{font-size:.9rem;color:#677f87;line-height:1.45;word-break:break-word;}
@media (max-width: 991.98px){.aw-delete-summary-grid{grid-template-columns:1fr;}}

.aw-filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.aw-filter-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.aw-date-filter-summary{font-size:.92rem;color:#5f6b7a;background:#f8fafc;border:1px solid #e3e8ef;border-radius:999px;padding:.45rem .8rem;}
.aw-date-modal-section{padding:.8rem;border:1px solid #e7edf4;border-radius:14px;background:#fbfcfe;}
.aw-date-modal-title{font-weight:700;font-size:.9rem;margin-bottom:.65rem;color:#23344d;}

.qr-batch-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;}
.qr-batch-sheet{background:#fff;border:1px solid #dce4ee;border-radius:20px;padding:8mm;box-shadow:0 12px 32px rgba(16,24,40,.08);}
.qr-batch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7mm;align-items:start;}
.qr-batch-card{border:1px solid #dbe4ee;border-radius:16px;padding:4mm 4mm 3.5mm;text-align:center;break-inside:avoid;page-break-inside:avoid;background:#fff;min-height:56mm;display:flex;flex-direction:column;justify-content:flex-start;}
.qr-batch-code svg{width:28mm;height:28mm;max-width:28mm;max-height:28mm;}
.qr-batch-tag{font-weight:800;font-size:.9rem;color:#16324f;line-height:1.2;margin-top:2mm;word-break:break-word;}
.qr-batch-name{font-size:.74rem;color:#536274;line-height:1.25;word-break:break-word;margin-top:1mm;min-height:2.4em;}
.qr-batch-meta{font-size:.68rem;color:#768396;margin-top:1mm;}

@media (max-width: 991.98px){
  .qr-batch-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 575.98px){
  .qr-batch-grid{grid-template-columns:1fr;}
  .aw-date-filter-summary{width:100%;}
}
@media print{
  .qr-batch-toolbar,.no-print{display:none !important;}
  .qr-batch-sheet{border:none !important;box-shadow:none !important;border-radius:0 !important;padding:0 !important;}
  .qr-batch-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6mm;}
  .qr-batch-card{min-height:52mm;padding:3.2mm;border-color:#cfd8e3;}
  .qr-batch-code svg{width:26mm;height:26mm;max-width:26mm;max-height:26mm;}
  @page{size:A4 portrait;margin:8mm;}
}


/* Phase 136 report equipment master list action button fit */
.report-equipment-master-table th.actions-col,
.report-equipment-master-table td.actions-col{
  width:1%;
  white-space:nowrap;
}
.report-equipment-master-actions{
  display:inline-flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:.45rem;
  min-width:max-content;
}
.report-equipment-master-actions .btn{
  white-space:nowrap;
  min-width:76px;
}
@media (max-width: 1199.98px){
  .report-equipment-master-actions{
    gap:.35rem;
  }
  .report-equipment-master-actions .btn{
    min-width:70px;
    padding-left:.7rem;
    padding-right:.7rem;
  }
}
@media (max-width: 767.98px){
  .report-equipment-master-table th.actions-col,
  .report-equipment-master-table td.actions-col{
    white-space:normal;
    width:auto;
  }
  .report-equipment-master-actions{
    display:flex;
    min-width:0;
    width:100%;
    flex-wrap:wrap;
    justify-content:flex-start;
  }
  .report-equipment-master-actions .btn{
    min-width:0;
    flex:1 1 120px;
  }
}


/* Phase 138 cross-device friendliness hardening */
.btn,
.table .btn,
.table-responsive .btn{white-space:nowrap;}
.table th,
.table td{overflow-wrap:anywhere;word-break:normal;}
.table-responsive{border:1px solid var(--aw-border);border-radius:16px;background:#fff;}
.table-responsive > .table{margin-bottom:0;}
.table-responsive .btn-group,
.table-responsive .d-flex,
.table-responsive .report-equipment-master-actions,
.table-responsive .table-action-group{flex-wrap:wrap;}
.aw-toolbar-actions .btn,
.aw-actions-stack .btn,
.page-toolbar .toolbar-actions .btn{min-height:42px;}

@media (max-width: 1199.98px){
  .app-main{padding-inline:.95rem !important;}
  .content-card,.metric-card,.form-section-card,.card{border-radius:16px;}
  .record-header .toolbar-actions,.aw-actions-stack,.aw-record-card-actions{width:100%;}
}

@media (max-width: 991.98px){
  .app-main{padding:1rem .9rem 1.25rem !important;}
  .content-card,.metric-card,.form-section-card,.card{padding:.95rem;}
  .record-header,.record-header .toolbar-actions{flex-direction:column;align-items:stretch;}
  .record-header .toolbar-actions .btn,
  .aw-actions-stack .btn,
  .aw-record-card-actions .btn{width:100%;}
  .table-responsive{margin-inline:-.15rem;}
  .table-responsive .table{min-width:760px;}
  .table-responsive .btn{min-height:38px;}
  .offcanvas-start{width:min(86vw,340px);}
}

@media (max-width: 767.98px){
  .app-header{padding:.75rem .85rem;}
  .app-main{padding:.9rem .75rem 1.15rem !important;}
  .table-responsive{border-radius:14px;}
  .table-responsive .table{min-width:700px;font-size:.92rem;}
  .table-responsive .table th,
  .table-responsive .table td{padding:.6rem .65rem;}
  .aw-page-shell .filter-card,
  .aw-page-shell .table-responsive,
  .aw-page-shell .content-card-inner,
  .aw-page-shell .pagination-toolbar,
  .aw-table-summary{margin:0 .7rem .85rem;}
  .page-toolbar .toolbar-actions .btn,
  .aw-toolbar-actions .btn,
  .aw-filter-actions .btn,
  .table-action-group .btn,
  .report-equipment-master-actions .btn{width:100%;}
  .report-equipment-master-actions,
  .table-action-group{display:grid;grid-template-columns:1fr;gap:.45rem;}
  .pagination-panel{gap:.55rem;}
  .modal-dialog{margin:.5rem;}
}

@media (max-width: 575.98px){
  .app-header .btn{padding-inline:.65rem;}
  .form-control,.form-select,.btn{font-size:14px;}
  .table-responsive .table{min-width:640px;font-size:.88rem;}
  .record-meta-chip{width:100%;justify-content:flex-start;}
  .aw-hero-pill{width:100%;}
}


/* Phase 139 bulk QR cut-note removal + page-by-page responsive hardening */
.aw-page-dashboard .aw-page-hero,
.aw-page-equipment-list .aw-page-hero,
.aw-page-service-requests-list .aw-page-hero,
.aw-page-work-orders-list .aw-page-hero,
.aw-page-ppm-dashboard .aw-page-hero,
.aw-page-report-equipment-list .aw-page-hero{
  margin-bottom:1rem;
}
.aw-page-equipment-list .aw-filter-toolbar-left,
.aw-page-service-requests-list .aw-filter-toolbar-left,
.aw-page-work-orders-list .aw-filter-toolbar-left,
.aw-page-ppm-dashboard .aw-filter-toolbar-left,
.aw-page-report-equipment-list .aw-filter-toolbar-left{
  display:flex;
  flex-direction:column;
  gap:.45rem;
  min-width:0;
}
.aw-page-equipment-list .aw-filter-toolbar-right,
.aw-page-service-requests-list .aw-filter-toolbar-right,
.aw-page-work-orders-list .aw-filter-toolbar-right,
.aw-page-ppm-dashboard .aw-filter-toolbar-right,
.aw-page-report-equipment-list .d-flex.gap-2.flex-wrap{
  justify-content:flex-end;
}
.aw-page-equipment-list .aw-filter-toolbar-right .btn,
.aw-page-service-requests-list .aw-filter-toolbar-right .btn,
.aw-page-work-orders-list .aw-filter-toolbar-right .btn,
.aw-page-ppm-dashboard .aw-filter-toolbar-right .btn,
.aw-page-report-equipment-list .d-flex.gap-2.flex-wrap .btn{
  min-height:42px;
}
.aw-page-equipment-detail .equipment-detail-header-main{
  min-width:min(100%, 420px);
}
.aw-page-equipment-detail .equipment-detail-actions{
  flex:1 1 100%;
}
.aw-page-equipment-detail .equipment-inline-actions{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
}
.aw-page-equipment-detail .equipment-inline-actions .btn{
  white-space:nowrap;
}
.aw-page-report-equipment-list .report-equipment-master-actions .btn{
  min-height:38px;
}
.aw-page-report-equipment-list .table-responsive{
  margin-top:.15rem;
}

@media (max-width: 1399.98px){
  .aw-page-dashboard .aw-kpi-card{
    min-height:138px;
  }
  .aw-page-equipment-list .aw-filter-toolbar-right .btn,
  .aw-page-service-requests-list .aw-filter-toolbar-right .btn,
  .aw-page-work-orders-list .aw-filter-toolbar-right .btn,
  .aw-page-ppm-dashboard .aw-filter-toolbar-right .btn,
  .aw-page-report-equipment-list .d-flex.gap-2.flex-wrap .btn{
    flex:1 1 190px;
  }
  .aw-page-equipment-detail .equipment-detail-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
  }
  .aw-page-equipment-detail .equipment-detail-actions > .btn,
  .aw-page-equipment-detail .equipment-detail-actions > form{
    width:100%;
  }
  .aw-page-equipment-detail .equipment-detail-actions > form .btn{
    width:100%;
  }
}

@media (max-width: 1199.98px){
  .aw-page-dashboard .aw-kpi-card{
    min-height:128px;
  }
  .aw-page-dashboard .aw-page-hero-aside{
    width:100%;
    justify-content:flex-start;
  }
  .aw-page-equipment-list .aw-filter-toolbar,
  .aw-page-service-requests-list .aw-filter-toolbar,
  .aw-page-work-orders-list .aw-filter-toolbar,
  .aw-page-ppm-dashboard .aw-filter-toolbar,
  .aw-page-report-equipment-list > .d-flex.justify-content-between.align-items-center.mb-3.flex-wrap.gap-2{
    align-items:stretch !important;
  }
  .aw-page-equipment-list .aw-filter-toolbar-right,
  .aw-page-service-requests-list .aw-filter-toolbar-right,
  .aw-page-work-orders-list .aw-filter-toolbar-right,
  .aw-page-ppm-dashboard .aw-filter-toolbar-right,
  .aw-page-report-equipment-list .d-flex.gap-2.flex-wrap{
    width:100%;
    justify-content:flex-start;
  }
  .aw-page-equipment-list .aw-filter-toolbar-right .btn,
  .aw-page-service-requests-list .aw-filter-toolbar-right .btn,
  .aw-page-work-orders-list .aw-filter-toolbar-right .btn,
  .aw-page-ppm-dashboard .aw-filter-toolbar-right .btn,
  .aw-page-report-equipment-list .d-flex.gap-2.flex-wrap .btn{
    flex:1 1 220px;
  }
  .aw-page-equipment-detail .equipment-detail-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .aw-page-equipment-detail .equipment-detail-meta{
    gap:.5rem;
  }
  .aw-page-equipment-detail .equipment-meta-pill{
    flex:1 1 210px;
  }
  .aw-page-report-equipment-list .report-equipment-master-actions{
    justify-content:flex-start;
  }
}

@media (max-width: 991.98px){
  .aw-page-dashboard .aw-page-hero,
  .aw-page-equipment-list .aw-page-hero,
  .aw-page-service-requests-list .aw-page-hero,
  .aw-page-work-orders-list .aw-page-hero,
  .aw-page-ppm-dashboard .aw-page-hero{
    padding:1rem;
  }
  .aw-page-dashboard .aw-page-subtitle,
  .aw-page-equipment-list .aw-page-subtitle,
  .aw-page-service-requests-list .aw-page-subtitle,
  .aw-page-work-orders-list .aw-page-subtitle,
  .aw-page-ppm-dashboard .aw-page-subtitle{
    max-width:none;
  }
  .aw-page-equipment-list .aw-filter-toolbar-right .btn,
  .aw-page-service-requests-list .aw-filter-toolbar-right .btn,
  .aw-page-work-orders-list .aw-filter-toolbar-right .btn,
  .aw-page-ppm-dashboard .aw-filter-toolbar-right .btn,
  .aw-page-report-equipment-list .d-flex.gap-2.flex-wrap .btn{
    flex:1 1 calc(50% - .5rem);
  }
  .aw-page-equipment-detail .equipment-detail-shell{
    padding:1rem;
  }
  .aw-page-equipment-detail .equipment-detail-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .aw-page-equipment-detail .equipment-inline-actions .btn{
    flex:1 1 180px;
  }
  .aw-page-equipment-detail .table-responsive,
  .aw-page-report-equipment-list .table-responsive{
    margin-inline:0;
  }
}

@media (max-width: 767.98px){
  .aw-page-dashboard .aw-page-hero-aside,
  .aw-page-equipment-list .aw-filter-toolbar-right,
  .aw-page-service-requests-list .aw-filter-toolbar-right,
  .aw-page-work-orders-list .aw-filter-toolbar-right,
  .aw-page-ppm-dashboard .aw-filter-toolbar-right,
  .aw-page-report-equipment-list .d-flex.gap-2.flex-wrap{
    width:100%;
  }
  .aw-page-dashboard .aw-page-hero-aside > *,
  .aw-page-equipment-list .aw-filter-toolbar-right .btn,
  .aw-page-service-requests-list .aw-filter-toolbar-right .btn,
  .aw-page-work-orders-list .aw-filter-toolbar-right .btn,
  .aw-page-ppm-dashboard .aw-filter-toolbar-right .btn,
  .aw-page-report-equipment-list .d-flex.gap-2.flex-wrap .btn{
    width:100%;
    flex:1 1 100%;
  }
  .aw-page-dashboard .aw-kpi-card{
    min-height:118px;
  }
  .aw-page-equipment-detail .equipment-detail-actions{
    grid-template-columns:1fr;
  }
  .aw-page-equipment-detail .equipment-inline-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .aw-page-equipment-detail .equipment-inline-actions .btn{
    width:100%;
  }
  .aw-page-equipment-detail .equipment-detail-tabs .nav-link{
    width:auto;
  }
  .aw-page-report-equipment-list .report-equipment-master-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    gap:.45rem;
  }
  .aw-page-report-equipment-list .report-equipment-master-actions .btn{
    width:100%;
    min-width:0;
  }
}

@media (max-width: 575.98px){
  .aw-page-dashboard .metric-card,
  .aw-page-dashboard .aw-kpi-card{
    padding:.9rem;
  }
  .aw-page-equipment-list .aw-date-filter-summary,
  .aw-page-service-requests-list .aw-date-filter-summary,
  .aw-page-work-orders-list .aw-date-filter-summary,
  .aw-page-ppm-dashboard .aw-date-filter-summary,
  .aw-page-report-equipment-list .small.text-muted.mt-1{
    width:100%;
  }
  .aw-page-equipment-detail .equipment-detail-shell{
    padding:.95rem;
  }
  .aw-page-equipment-detail .equipment-meta-pill{
    width:100%;
    flex-basis:100%;
  }
}


/* Phase 140 second-priority responsive hardening */
.aw-page-warranty-list .page-toolbar,
.aw-page-recall-list .page-toolbar,
.aw-page-adverse-events-list .page-toolbar,
.aw-page-temporary-transfers-list .page-toolbar,
.aw-page-closure-queue .aw-page-hero,
.aw-page-activity-log .aw-page-hero,
.aw-page-settings-center .aw-page-hero,
.aw-page-migration-center .aw-page-hero{
  margin-bottom:1rem;
}
.aw-page-warranty-list .aw-filter-toolbar-left,
.aw-page-recall-list .aw-filter-toolbar-left,
.aw-page-adverse-events-list .aw-filter-toolbar-left,
.aw-page-temporary-transfers-list .aw-filter-toolbar-left{
  display:flex;
  flex-direction:column;
  gap:.45rem;
  min-width:0;
}
.aw-page-warranty-list .aw-filter-toolbar-right,
.aw-page-recall-list .aw-filter-toolbar-right,
.aw-page-adverse-events-list .aw-filter-toolbar-right,
.aw-page-temporary-transfers-list .aw-filter-toolbar-right,
.aw-page-closure-queue .aw-toolbar-actions,
.aw-page-activity-log .aw-toolbar-actions,
.aw-page-migration-center .aw-page-hero-aside{
  justify-content:flex-end;
}
.aw-page-warranty-list .aw-filter-toolbar-right .btn,
.aw-page-recall-list .aw-filter-toolbar-right .btn,
.aw-page-adverse-events-list .aw-filter-toolbar-right .btn,
.aw-page-temporary-transfers-list .aw-filter-toolbar-right .btn,
.aw-page-closure-queue .aw-toolbar-actions .btn,
.aw-page-activity-log .aw-toolbar-actions .btn,
.aw-page-migration-center .aw-actions-stack .btn{
  min-height:42px;
}
.aw-page-settings-center .aw-page-hero,
.aw-page-migration-center .aw-page-hero,
.aw-page-closure-queue .aw-page-hero,
.aw-page-activity-log .aw-page-hero{
  border-radius:20px;
}
.aw-page-settings-center .aw-page-subtitle,
.aw-page-migration-center .aw-page-subtitle,
.aw-page-closure-queue .aw-page-subtitle,
.aw-page-activity-log .aw-page-subtitle{
  max-width:860px;
}
.aw-page-settings-center .aw-page-hero-aside,
.aw-page-migration-center .aw-page-hero-aside{
  align-items:stretch;
}
.aw-page-settings-center .aw-hero-pill,
.aw-page-migration-center .aw-hero-pill{
  min-height:100%;
}
.aw-page-settings-center .aw-link-card,
.aw-page-migration-center .aw-section-card,
.aw-page-closure-queue .aw-record-card,
.aw-page-activity-log .aw-record-card{
  min-width:0;
}
.aw-page-settings-center .support-card,
.aw-page-migration-center .aw-section-card{
  box-shadow:0 6px 20px rgba(16,109,111,.05);
}
.aw-page-settings-center .support-section-head,
.aw-page-migration-center .aw-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
  flex-wrap:wrap;
}
.aw-page-settings-center .support-bullet-list,
.aw-page-settings-center .support-step-list,
.aw-page-migration-center ol,
.aw-page-migration-center ul{
  line-height:1.55;
}
.aw-page-migration-center .content-card-inner > .row{
  align-items:start;
}
.aw-page-migration-center .form-text{
  line-height:1.4;
}
.aw-page-migration-center .table td,
.aw-page-migration-center .table th,
.aw-page-activity-log .table td,
.aw-page-activity-log .table th,
.aw-page-closure-queue .table td,
.aw-page-closure-queue .table th{
  white-space:normal;
}
.aw-page-closure-queue .table-action-group,
.aw-page-activity-log .table-action-group,
.aw-page-warranty-list .table-action-group,
.aw-page-recall-list .table-action-group,
.aw-page-adverse-events-list .table-action-group,
.aw-page-temporary-transfers-list .table-action-group{
  justify-content:flex-start;
}
.aw-page-closure-queue .table-responsive,
.aw-page-activity-log .table-responsive,
.aw-page-migration-center .table-responsive,
.aw-page-settings-center .table-responsive,
.aw-page-warranty-list .table-responsive,
.aw-page-recall-list .table-responsive,
.aw-page-adverse-events-list .table-responsive,
.aw-page-temporary-transfers-list .table-responsive{
  margin-top:.15rem;
}
.aw-page-settings-center .aw-link-grid,
.aw-page-settings-center .aw-settings-migration-note,
.aw-page-migration-center .row.g-4{
  min-width:0;
}
.aw-page-settings-center .aw-link-card-title,
.aw-page-settings-center .aw-link-card-text,
.aw-page-migration-center .mobile-table-title,
.aw-page-migration-center .mobile-table-subtitle{
  word-break:break-word;
}

.aw-page-migration-center .aw-migration-batches-table{
  table-layout:auto;
  min-width:980px;
}
.aw-page-migration-center .aw-migration-batches-table thead th,
.aw-page-migration-center .aw-migration-batches-table tbody td{
  white-space:nowrap;
  word-break:normal;
  overflow-wrap:normal;
  vertical-align:middle;
}
.aw-page-migration-center .aw-migration-batches-table thead th.aw-sortable-header .aw-table-sort-label{
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
}
.aw-page-migration-center .aw-migration-batches-table .mobile-table-title,
.aw-page-migration-center .aw-migration-batches-table .mobile-table-subtitle{
  word-break:normal;
  overflow-wrap:anywhere;
  white-space:normal;
}
.aw-page-migration-center .aw-migration-batches-table .aw-col-id{min-width:76px;}
.aw-page-migration-center .aw-migration-batches-table .aw-col-table{min-width:170px;}
.aw-page-migration-center .aw-migration-batches-table .aw-col-branch{min-width:190px;}
.aw-page-migration-center .aw-migration-batches-table .aw-col-status{min-width:128px;}
.aw-page-migration-center .aw-migration-batches-table .aw-col-summary{min-width:150px;}
.aw-page-migration-center .aw-migration-batches-table .aw-col-action,
.aw-page-migration-center .aw-migration-batches-table td.actions-cell{
  min-width:128px;
  width:1%;
  white-space:nowrap;
}
.aw-page-migration-center .aw-migration-batches-table td.actions-cell .btn{
  white-space:nowrap;
}
@media (max-width: 991.98px){
  .aw-page-migration-center .aw-migration-batches-table{
    min-width:920px;
  }
}
@media (max-width: 767.98px){
  .aw-page-migration-center .aw-migration-batches-table{
    min-width:920px !important;
  }
}

@media (max-width: 1399.98px){
  .aw-page-settings-center .aw-page-hero-aside,
  .aw-page-migration-center .aw-page-hero-aside{
    width:100%;
    justify-content:flex-start;
  }
  .aw-page-warranty-list .aw-filter-toolbar-right .btn,
  .aw-page-recall-list .aw-filter-toolbar-right .btn,
  .aw-page-adverse-events-list .aw-filter-toolbar-right .btn,
  .aw-page-temporary-transfers-list .aw-filter-toolbar-right .btn,
  .aw-page-closure-queue .aw-toolbar-actions .btn,
  .aw-page-activity-log .aw-toolbar-actions .btn{
    flex:1 1 190px;
  }
}

@media (max-width: 1199.98px){
  .aw-page-settings-center .aw-settings-shell,
  .aw-page-migration-center .content-card-inner > .row,
  .aw-page-closure-queue .aw-page-hero,
  .aw-page-activity-log .aw-page-hero{
    gap:1rem;
  }
  .aw-page-settings-center .aw-page-hero,
  .aw-page-migration-center .aw-page-hero,
  .aw-page-closure-queue .aw-page-hero,
  .aw-page-activity-log .aw-page-hero{
    align-items:stretch;
  }
  .aw-page-warranty-list .aw-filter-toolbar,
  .aw-page-recall-list .aw-filter-toolbar,
  .aw-page-adverse-events-list .aw-filter-toolbar,
  .aw-page-temporary-transfers-list .aw-filter-toolbar{
    align-items:stretch;
  }
  .aw-page-warranty-list .aw-filter-toolbar-right,
  .aw-page-recall-list .aw-filter-toolbar-right,
  .aw-page-adverse-events-list .aw-filter-toolbar-right,
  .aw-page-temporary-transfers-list .aw-filter-toolbar-right,
  .aw-page-closure-queue .aw-toolbar-actions,
  .aw-page-activity-log .aw-toolbar-actions{
    width:100%;
    justify-content:flex-start;
  }
  .aw-page-warranty-list .aw-filter-toolbar-right .btn,
  .aw-page-recall-list .aw-filter-toolbar-right .btn,
  .aw-page-adverse-events-list .aw-filter-toolbar-right .btn,
  .aw-page-temporary-transfers-list .aw-filter-toolbar-right .btn,
  .aw-page-closure-queue .aw-toolbar-actions .btn,
  .aw-page-activity-log .aw-toolbar-actions .btn,
  .aw-page-migration-center .aw-actions-stack .btn{
    flex:1 1 220px;
  }
  .aw-page-settings-center .aw-link-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 991.98px){
  .aw-page-settings-center .aw-page-hero,
  .aw-page-migration-center .aw-page-hero,
  .aw-page-closure-queue .aw-page-hero,
  .aw-page-activity-log .aw-page-hero{
    padding:1rem;
  }
  .aw-page-settings-center .aw-page-subtitle,
  .aw-page-migration-center .aw-page-subtitle,
  .aw-page-closure-queue .aw-page-subtitle,
  .aw-page-activity-log .aw-page-subtitle{
    max-width:none;
  }
  .aw-page-settings-center .aw-settings-section,
  .aw-page-migration-center .aw-section-card{
    padding:1rem;
  }
  .aw-page-warranty-list .aw-filter-toolbar-right .btn,
  .aw-page-recall-list .aw-filter-toolbar-right .btn,
  .aw-page-adverse-events-list .aw-filter-toolbar-right .btn,
  .aw-page-temporary-transfers-list .aw-filter-toolbar-right .btn,
  .aw-page-closure-queue .aw-toolbar-actions .btn,
  .aw-page-activity-log .aw-toolbar-actions .btn,
  .aw-page-migration-center .aw-actions-stack .btn{
    flex:1 1 calc(50% - .5rem);
  }
  .aw-page-migration-center .table-responsive .table,
  .aw-page-closure-queue .table-responsive .table,
  .aw-page-activity-log .table-responsive .table{
    min-width:720px;
  }
}

@media (max-width: 767.98px){
  .aw-page-settings-center .aw-page-hero-aside,
  .aw-page-migration-center .aw-page-hero-aside,
  .aw-page-warranty-list .aw-filter-toolbar-right,
  .aw-page-recall-list .aw-filter-toolbar-right,
  .aw-page-adverse-events-list .aw-filter-toolbar-right,
  .aw-page-temporary-transfers-list .aw-filter-toolbar-right,
  .aw-page-closure-queue .aw-toolbar-actions,
  .aw-page-activity-log .aw-toolbar-actions{
    width:100%;
  }
  .aw-page-settings-center .aw-page-hero-aside > *,
  .aw-page-migration-center .aw-page-hero-aside > *,
  .aw-page-warranty-list .aw-filter-toolbar-right .btn,
  .aw-page-recall-list .aw-filter-toolbar-right .btn,
  .aw-page-adverse-events-list .aw-filter-toolbar-right .btn,
  .aw-page-temporary-transfers-list .aw-filter-toolbar-right .btn,
  .aw-page-closure-queue .aw-toolbar-actions .btn,
  .aw-page-activity-log .aw-toolbar-actions .btn,
  .aw-page-migration-center .aw-actions-stack .btn{
    width:100%;
    flex:1 1 100%;
  }
  .aw-page-settings-center .aw-link-grid,
  .aw-page-settings-center .aw-settings-migration-note{
    grid-template-columns:1fr;
  }
  .aw-page-settings-center .aw-settings-section,
  .aw-page-migration-center .aw-section-card{
    padding:.95rem;
  }
  .aw-page-migration-center .table-responsive,
  .aw-page-settings-center .table-responsive,
  .aw-page-closure-queue .table-responsive,
  .aw-page-activity-log .table-responsive{
    margin-inline:0;
  }
  .aw-page-migration-center .table-responsive .table,
  .aw-page-closure-queue .table-responsive .table,
  .aw-page-activity-log .table-responsive .table{
    min-width:0;
  }
}


/* Phase 141 remaining admin/detail responsive hardening */
.aw-page-users-list .page-toolbar,
.aw-page-roles-list .page-toolbar,
.aw-page-audit-logs .aw-page-hero,
.aw-page-my-account .aw-page-hero,
.aw-page-backup-center .aw-page-hero,
.aw-page-telegram-bot .aw-page-hero,
.aw-page-migration-batch-detail .aw-page-hero{
  margin-bottom:1rem;
}
.aw-page-users-list .page-toolbar,
.aw-page-roles-list .page-toolbar{
  align-items:flex-start;
}
.aw-page-users-list .toolbar-actions,
.aw-page-roles-list .toolbar-actions,
.aw-page-audit-logs .aw-toolbar-actions,
.aw-page-my-account .toolbar-actions,
.aw-page-backup-center .aw-page-hero-aside,
.aw-page-telegram-bot .aw-page-hero-aside,
.aw-page-migration-batch-detail .aw-toolbar-actions{
  justify-content:flex-end;
  align-items:flex-start;
  gap:.6rem;
}
.aw-page-users-list .toolbar-actions .btn,
.aw-page-roles-list .toolbar-actions .btn,
.aw-page-audit-logs .aw-toolbar-actions .btn,
.aw-page-my-account .toolbar-actions .btn,
.aw-page-backup-center .aw-page-hero-aside .btn,
.aw-page-backup-center .support-action-row .btn,
.aw-page-backup-center .d-flex.flex-wrap.gap-2 .btn,
.aw-page-telegram-bot .aw-page-hero-aside .btn,
.aw-page-telegram-bot .support-action-row .btn,
.aw-page-migration-batch-detail .aw-toolbar-actions .btn{
  min-height:42px;
}
.aw-page-users-list .table-responsive,
.aw-page-roles-list .table-responsive,
.aw-page-audit-logs .table-responsive,
.aw-page-backup-center .table-responsive,
.aw-page-telegram-bot .table-responsive,
.aw-page-migration-batch-detail .table-responsive{
  margin-top:.15rem;
}
.aw-page-users-list .table-action-group,
.aw-page-audit-logs .table-action-group,
.aw-page-backup-center .table-action-group,
.aw-page-telegram-bot .table-action-group,
.aw-page-migration-batch-detail .table-action-group{
  justify-content:flex-start;
}
.aw-page-roles-list .table-action-group{
  justify-content:flex-end;
}
.aw-page-roles-list .actions-cell{
  text-align:right;
}
.aw-page-users-list .filter-card,
.aw-page-roles-list .filter-card{
  margin-bottom:0;
}
.aw-page-users-list .mobile-table-title,
.aw-page-roles-list .mobile-table-title,
.aw-page-audit-logs .aw-reference-title,
.aw-page-backup-center .aw-mini-panel-title,
.aw-page-telegram-bot .support-note-label,
.aw-page-migration-batch-detail .mobile-table-title{
  word-break:break-word;
}
.aw-page-backup-center .support-grid,
.aw-page-telegram-bot .support-grid{
  align-items:start;
}
.aw-page-backup-center .support-card,
.aw-page-telegram-bot .support-card,
.aw-page-migration-batch-detail .aw-section-card{
  min-width:0;
}
.aw-page-backup-center .aw-page-hero-aside,
.aw-page-telegram-bot .aw-page-hero-aside{
  align-items:stretch;
}
.aw-page-backup-center .aw-hero-pill,
.aw-page-telegram-bot .aw-hero-pill{
  min-height:100%;
}
.aw-page-backup-center code,
.aw-page-telegram-bot code,
.aw-page-migration-batch-detail code,
.aw-page-audit-logs code{
  overflow-wrap:anywhere;
}
.aw-page-backup-center .cron-command-box{
  min-height:116px;
}
.aw-page-backup-center #backup-settings-form .row.g-3 > [class*="col-"],
.aw-page-migration-batch-detail .aw-stat-grid > *{
  min-width:0;
}
.aw-page-migration-batch-detail .aw-layout-two{
  display:grid;
  grid-template-columns:minmax(290px,.92fr) minmax(0,1.08fr);
  gap:1rem;
  align-items:start;
}
.aw-page-migration-batch-detail .aw-layout-sidebar{
  min-width:0;
}
.aw-page-migration-batch-detail .aw-reference-item,
.aw-page-audit-logs .aw-reference-item{
  align-items:flex-start;
}
.aw-page-migration-batch-detail .aw-reference-meta,
.aw-page-audit-logs .aw-reference-meta{
  overflow-wrap:anywhere;
}
.aw-page-migration-batch-detail .aw-section-card h5,
.aw-page-audit-logs .aw-section-card h5,
.aw-page-backup-center h5,
.aw-page-telegram-bot h5{
  line-height:1.25;
}
.aw-page-users-list .table td,
.aw-page-roles-list .table td,
.aw-page-audit-logs .table td,
.aw-page-backup-center .table td,
.aw-page-telegram-bot .table td,
.aw-page-migration-batch-detail .table td{
  white-space:normal;
}

@media (max-width: 1399.98px){
  .aw-page-users-list .toolbar-actions .btn,
  .aw-page-roles-list .toolbar-actions .btn,
  .aw-page-audit-logs .aw-toolbar-actions .btn,
  .aw-page-backup-center .aw-page-hero-aside > *,
  .aw-page-telegram-bot .aw-page-hero-aside > *,
  .aw-page-migration-batch-detail .aw-toolbar-actions .btn{
    flex:1 1 200px;
  }
  .aw-page-backup-center .aw-page-hero-aside,
  .aw-page-telegram-bot .aw-page-hero-aside{
    width:100%;
    justify-content:flex-start;
  }
}

@media (max-width: 1199.98px){
  .aw-page-users-list .page-toolbar,
  .aw-page-roles-list .page-toolbar,
  .aw-page-audit-logs .aw-page-hero,
  .aw-page-my-account .aw-page-hero,
  .aw-page-backup-center .aw-page-hero,
  .aw-page-telegram-bot .aw-page-hero,
  .aw-page-migration-batch-detail .aw-page-hero{
    align-items:stretch;
  }
  .aw-page-users-list .toolbar-actions,
  .aw-page-roles-list .toolbar-actions,
  .aw-page-audit-logs .aw-toolbar-actions,
  .aw-page-my-account .toolbar-actions,
  .aw-page-backup-center .aw-page-hero-aside,
  .aw-page-telegram-bot .aw-page-hero-aside,
  .aw-page-migration-batch-detail .aw-toolbar-actions{
    width:100%;
    justify-content:flex-start;
  }
  .aw-page-users-list .toolbar-actions .btn,
  .aw-page-roles-list .toolbar-actions .btn,
  .aw-page-audit-logs .aw-toolbar-actions .btn,
  .aw-page-my-account .toolbar-actions .btn,
  .aw-page-backup-center .aw-page-hero-aside .btn,
  .aw-page-backup-center .support-action-row .btn,
  .aw-page-backup-center .d-flex.flex-wrap.gap-2 .btn,
  .aw-page-telegram-bot .aw-page-hero-aside .btn,
  .aw-page-telegram-bot .support-action-row .btn,
  .aw-page-migration-batch-detail .aw-toolbar-actions .btn{
    flex:1 1 220px;
  }
  .aw-page-backup-center .support-grid,
  .aw-page-telegram-bot .support-grid,
  .aw-page-migration-batch-detail .aw-layout-two{
    grid-template-columns:1fr;
  }
}

@media (max-width: 991.98px){
  .aw-page-users-list,
  .aw-page-roles-list,
  .aw-page-audit-logs,
  .aw-page-my-account,
  .aw-page-backup-center,
  .aw-page-telegram-bot,
  .aw-page-migration-batch-detail{
    padding:1rem;
  }
  .aw-page-users-list .toolbar-actions .btn,
  .aw-page-roles-list .toolbar-actions .btn,
  .aw-page-audit-logs .aw-toolbar-actions .btn,
  .aw-page-my-account .toolbar-actions .btn,
  .aw-page-backup-center .aw-page-hero-aside > *,
  .aw-page-backup-center .support-action-row .btn,
  .aw-page-backup-center .d-flex.flex-wrap.gap-2 .btn,
  .aw-page-telegram-bot .aw-page-hero-aside > *,
  .aw-page-telegram-bot .support-action-row .btn,
  .aw-page-migration-batch-detail .aw-toolbar-actions .btn{
    flex:1 1 calc(50% - .45rem);
  }
  .aw-page-users-list .table-responsive .table,
  .aw-page-roles-list .table-responsive .table,
  .aw-page-audit-logs .table-responsive .table,
  .aw-page-backup-center .table-responsive .table,
  .aw-page-telegram-bot .table-responsive .table,
  .aw-page-migration-batch-detail .table-responsive .table{
    min-width:700px;
  }
  .aw-page-my-account .form-actions-sticky{
    margin-inline:0;
  }
}

@media (max-width: 767.98px){
  .aw-page-users-list,
  .aw-page-roles-list,
  .aw-page-audit-logs,
  .aw-page-my-account,
  .aw-page-backup-center,
  .aw-page-telegram-bot,
  .aw-page-migration-batch-detail{
    padding:.95rem;
  }
  .aw-page-users-list .toolbar-actions,
  .aw-page-roles-list .toolbar-actions,
  .aw-page-audit-logs .aw-toolbar-actions,
  .aw-page-my-account .toolbar-actions,
  .aw-page-backup-center .aw-page-hero-aside,
  .aw-page-backup-center .support-action-row,
  .aw-page-backup-center .d-flex.flex-wrap.gap-2,
  .aw-page-telegram-bot .aw-page-hero-aside,
  .aw-page-telegram-bot .support-action-row,
  .aw-page-migration-batch-detail .aw-toolbar-actions{
    display:grid !important;
    grid-template-columns:1fr;
    width:100%;
    gap:.55rem;
  }
  .aw-page-users-list .toolbar-actions .btn,
  .aw-page-roles-list .toolbar-actions .btn,
  .aw-page-audit-logs .aw-toolbar-actions .btn,
  .aw-page-my-account .toolbar-actions .btn,
  .aw-page-backup-center .aw-page-hero-aside > *,
  .aw-page-backup-center .support-action-row .btn,
  .aw-page-backup-center .d-flex.flex-wrap.gap-2 .btn,
  .aw-page-telegram-bot .aw-page-hero-aside > *,
  .aw-page-telegram-bot .support-action-row .btn,
  .aw-page-migration-batch-detail .aw-toolbar-actions .btn{
    width:100%;
    flex:1 1 100%;
  }
  .aw-page-users-list .table-responsive,
  .aw-page-roles-list .table-responsive,
  .aw-page-audit-logs .table-responsive,
  .aw-page-backup-center .table-responsive,
  .aw-page-telegram-bot .table-responsive,
  .aw-page-migration-batch-detail .table-responsive{
    margin-inline:0;
  }
  .aw-page-audit-logs .aw-reference-item,
  .aw-page-migration-batch-detail .aw-reference-item{
    flex-direction:column;
    gap:.6rem;
  }
  .aw-page-backup-center .support-grid,
  .aw-page-telegram-bot .support-grid{
    gap:.9rem;
  }
}

@media (max-width: 575.98px){
  .aw-page-users-list .filter-card .row > [class*="col-"],
  .aw-page-roles-list .filter-card .row > [class*="col-"],
  .aw-page-backup-center #backup-settings-form .row > [class*="col-"],
  .aw-page-telegram-bot form .row > [class*="col-"]{
    width:100%;
  }
  .aw-page-users-list .content-card,
  .aw-page-roles-list .content-card,
  .aw-page-audit-logs .content-card,
  .aw-page-my-account .content-card,
  .aw-page-backup-center .content-card,
  .aw-page-telegram-bot .content-card,
  .aw-page-migration-batch-detail .content-card{
    border-radius:16px;
  }
}


/* Phase 142: final form-heavy responsive hardening */
.aw-page-user-form,
.aw-page-role-form,
.aw-page-role-field-acl-form,
.aw-page-user-permissions-form,
.aw-page-system-config,
.aw-page-migration-edit{
  min-width:0;
}
.aw-page-user-form .record-header,
.aw-page-role-form .page-toolbar,
.aw-page-role-field-acl-form .page-toolbar,
.aw-page-user-permissions-form .record-header,
.aw-page-system-config .record-header,
.aw-page-migration-edit .page-toolbar{
  gap:1rem;
}
.aw-form-shell-responsive .row.g-3 > [class*="col-"],
.aw-form-shell-responsive .row.g-4 > [class*="col-"]{
  min-width:0;
}
.aw-page-user-form .form-select[multiple],
.aw-page-migration-edit .form-select,
.aw-page-system-config .form-select,
.aw-page-role-form .form-select{
  max-width:100%;
}
.aw-page-role-field-acl-form .mobile-card-table .form-check,
.aw-page-user-permissions-form .permission-tile .form-check{
  align-items:flex-start;
}
.aw-page-user-permissions-form .permission-module-card,
.aw-page-role-field-acl-form .form-section-card,
.aw-page-system-config .settings-section-card,
.aw-page-migration-edit .content-card{
  min-width:0;
}
.aw-page-system-config code,
.aw-page-role-field-acl-form code,
.aw-page-migration-edit code{
  overflow-wrap:anywhere;
}
.aw-page-migration-edit .content-card{
  max-width:1120px;
  margin-inline:auto;
}
.aw-page-migration-edit h5,
.aw-page-user-form h5,
.aw-page-role-form h5,
.aw-page-role-field-acl-form h5,
.aw-page-user-permissions-form h5,
.aw-page-system-config h5{
  line-height:1.25;
}
.aw-page-migration-edit .form-label,
.aw-page-user-form .form-label,
.aw-page-role-form .form-label,
.aw-page-role-field-acl-form .form-label,
.aw-page-user-permissions-form .form-label,
.aw-page-system-config .form-label{
  overflow-wrap:anywhere;
}
.aw-page-role-field-acl-form .table-responsive,
.aw-page-migration-edit .table-responsive{
  margin-inline:0;
}
.aw-page-system-config .section-header,
.aw-page-role-form .page-toolbar,
.aw-page-role-field-acl-form .page-toolbar{
  align-items:flex-start;
}
.aw-page-user-permissions-form .permission-tile{
  gap:.85rem;
}
.aw-page-user-permissions-form .permission-tile > div:last-child{
  justify-content:flex-start;
}
.aw-page-user-form .record-meta-chip,
.aw-page-user-permissions-form .record-meta-chip{
  overflow-wrap:anywhere;
}

@media (max-width: 1199.98px){
  .aw-page-user-form .record-header,
  .aw-page-role-form .page-toolbar,
  .aw-page-role-field-acl-form .page-toolbar,
  .aw-page-user-permissions-form .record-header,
  .aw-page-system-config .record-header{
    align-items:stretch;
  }
  .aw-page-user-form .toolbar-actions,
  .aw-page-role-form .toolbar-actions,
  .aw-page-role-field-acl-form .toolbar-actions,
  .aw-page-user-permissions-form .toolbar-actions,
  .aw-page-system-config .toolbar-actions{
    width:100%;
    justify-content:flex-start;
  }
  .aw-page-user-form .toolbar-actions .btn,
  .aw-page-role-form .toolbar-actions .btn,
  .aw-page-role-field-acl-form .toolbar-actions .btn,
  .aw-page-user-permissions-form .toolbar-actions .btn,
  .aw-page-system-config .toolbar-actions .btn{
    flex:1 1 220px;
  }
  .aw-page-user-permissions-form .row.g-3 > [class*="col-xl-"],
  .aw-page-role-field-acl-form .form-section-card,
  .aw-page-system-config .settings-section-card{
    min-width:0;
  }
}

@media (max-width: 991.98px){
  .aw-page-user-form,
  .aw-page-role-form,
  .aw-page-role-field-acl-form,
  .aw-page-user-permissions-form,
  .aw-page-system-config,
  .aw-page-migration-edit{
    padding:1rem;
  }
  .aw-page-role-field-acl-form .table-responsive .table{
    min-width:640px;
  }
  .aw-page-user-permissions-form .permission-module-card{
    height:100%;
  }
  .aw-page-migration-edit .content-card{
    max-width:none;
  }
}

@media (max-width: 767.98px){
  .aw-page-user-form,
  .aw-page-role-form,
  .aw-page-role-field-acl-form,
  .aw-page-user-permissions-form,
  .aw-page-system-config,
  .aw-page-migration-edit{
    padding:.95rem;
  }
  .aw-page-user-form .toolbar-actions,
  .aw-page-role-form .toolbar-actions,
  .aw-page-role-field-acl-form .toolbar-actions,
  .aw-page-user-permissions-form .toolbar-actions,
  .aw-page-system-config .toolbar-actions{
    display:grid !important;
    grid-template-columns:1fr;
    width:100%;
    gap:.55rem;
  }
  .aw-page-user-form .toolbar-actions .btn,
  .aw-page-role-form .toolbar-actions .btn,
  .aw-page-role-field-acl-form .toolbar-actions .btn,
  .aw-page-user-permissions-form .toolbar-actions .btn,
  .aw-page-system-config .toolbar-actions .btn,
  .aw-page-migration-edit .col-12.d-flex.gap-2 .btn,
  .aw-page-migration-edit .col-12.d-flex.gap-2 a,
  .aw-page-user-permissions-form .permission-tile > div:last-child{
    width:100%;
  }
  .aw-page-migration-edit .col-12.d-flex.gap-2,
  .aw-page-user-permissions-form .permission-tile,
  .aw-page-user-permissions-form .permission-tile > div:last-child{
    display:grid !important;
    grid-template-columns:1fr;
    gap:.65rem;
  }
  .aw-page-user-form .form-select[multiple]{
    min-height:11rem;
  }
  .aw-page-system-config .section-header{
    gap:.75rem;
  }
}

@media (max-width: 575.98px){
  .aw-page-user-form .content-card,
  .aw-page-role-form .content-card,
  .aw-page-role-field-acl-form .content-card,
  .aw-page-user-permissions-form .content-card,
  .aw-page-system-config .content-card,
  .aw-page-migration-edit .content-card{
    border-radius:16px;
  }
  .aw-page-user-form .record-header,
  .aw-page-user-permissions-form .record-header,
  .aw-page-system-config .record-header,
  .aw-page-role-form .page-toolbar,
  .aw-page-role-field-acl-form .page-toolbar{
    gap:.8rem;
  }
  .aw-page-role-field-acl-form .table-responsive .table{
    min-width:580px;
  }
}


/* Phase 143 - Settings recent migration activity uncluttered layout */
.aw-recent-batches-list{display:grid;gap:.85rem;}
.aw-recent-batch-item{border:1px solid rgba(36,115,128,.18);border-radius:20px;background:#fff;padding:1rem 1rem .95rem;box-shadow:0 8px 24px rgba(15,43,58,.05);}
.aw-recent-batch-top{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.5rem;}
.aw-recent-batch-id{font-weight:800;color:#12384c;}
.aw-recent-batch-file{font-weight:700;color:#18445a;line-height:1.45;word-break:break-word;overflow-wrap:anywhere;}
.aw-recent-batch-date{margin-top:.2rem;}
.aw-recent-batch-summary{display:grid;gap:.2rem;margin-top:.6rem;color:#47626d;font-size:.93rem;line-height:1.45;}
.aw-recent-batch-actions{margin-top:.75rem;display:flex;justify-content:flex-end;}
.aw-settings-side .aw-recent-batch-item .btn{min-width:5.5rem;white-space:nowrap;}
@media (max-width: 991.98px){
  .aw-recent-batch-item{padding:.9rem .9rem .85rem;}
}
@media (max-width: 575.98px){
  .aw-recent-batch-top{align-items:stretch;flex-direction:column;}
  .aw-recent-batch-actions{justify-content:stretch;}
  .aw-recent-batch-actions .btn{width:100%;}
}

/* Phase 146: Operational Reference Tables Pack content-aware widths */
.aw-page-reference-pack .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.aw-reference-pack-table{width:max-content;min-width:100%;table-layout:auto;}
.aw-reference-pack-table th,.aw-reference-pack-table td{word-break:normal;overflow-wrap:anywhere;vertical-align:top;}
.aw-reference-hierarchy-table{min-width:880px;}
.aw-reference-hierarchy-table th:nth-child(1),.aw-reference-hierarchy-table td:nth-child(1){min-width:140px;}
.aw-reference-hierarchy-table th:nth-child(2),.aw-reference-hierarchy-table td:nth-child(2){min-width:180px;}
.aw-reference-hierarchy-table th:nth-child(3),.aw-reference-hierarchy-table td:nth-child(3){min-width:220px;}
.aw-reference-hierarchy-table th:nth-child(4),.aw-reference-hierarchy-table td:nth-child(4){min-width:160px;}
.aw-reference-hierarchy-table th:nth-child(5),.aw-reference-hierarchy-table td:nth-child(5){min-width:92px;white-space:nowrap;}
.aw-reference-manufacturers-table{min-width:1060px;}
.aw-reference-manufacturers-table th:nth-child(1),.aw-reference-manufacturers-table td:nth-child(1){min-width:96px;white-space:nowrap;}
.aw-reference-manufacturers-table th:nth-child(2),.aw-reference-manufacturers-table td:nth-child(2){min-width:220px;}
.aw-reference-manufacturers-table th:nth-child(3),.aw-reference-manufacturers-table td:nth-child(3){min-width:130px;}
.aw-reference-manufacturers-table th:nth-child(4),.aw-reference-manufacturers-table td:nth-child(4){min-width:180px;}
.aw-reference-manufacturers-table th:nth-child(5),.aw-reference-manufacturers-table td:nth-child(5){min-width:140px;white-space:nowrap;}
.aw-reference-manufacturers-table th:nth-child(6),.aw-reference-manufacturers-table td:nth-child(6){min-width:220px;}
.aw-reference-representatives-table{min-width:1100px;}
.aw-reference-representatives-table th:nth-child(1),.aw-reference-representatives-table td:nth-child(1){min-width:230px;}
.aw-reference-representatives-table th:nth-child(2),.aw-reference-representatives-table td:nth-child(2){min-width:180px;}
.aw-reference-representatives-table th:nth-child(3),.aw-reference-representatives-table td:nth-child(3){min-width:140px;white-space:nowrap;}
.aw-reference-representatives-table th:nth-child(4),.aw-reference-representatives-table td:nth-child(4){min-width:220px;}
.aw-reference-representatives-table th:nth-child(5),.aw-reference-representatives-table td:nth-child(5){min-width:320px;}
@media (max-width: 991.98px){
  .aw-page-reference-pack .table-responsive{margin-inline:-.1rem;}
}


/* Phase 148: Staff requester dashboard */
.aw-page-dashboard-requester .aw-requester-hero { align-items: stretch; }
.aw-requester-hero-aside { display: grid; gap: .75rem; align-content: start; }
.aw-requester-chip-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.aw-requester-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: .45rem .85rem; border: 1px solid rgba(42,112,128,.18); background: rgba(42,112,128,.08); color: #1f5463; font-weight: 600; }
.aw-requester-chip-soft { background: #f4f8f8; color: #355866; border-color: rgba(53,88,102,.12); }
.aw-link-card-static { cursor: default; }
.aw-link-card-static:hover { transform: none; box-shadow: none; }
.aw-page-dashboard-requester .metric-card { height: 100%; }
@media (max-width: 991.98px) { .aw-requester-hero-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .aw-requester-hero-aside { grid-template-columns: 1fr; } }


.signature-source-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}
.signature-source-card{
  border:1px solid var(--aw-border);
  border-radius:18px;
  background:#fff;
  padding:16px;
  display:block;
  cursor:pointer;
}
.signature-source-card.is-default{
  border-color:rgba(13,116,118,.45);
  box-shadow:0 0 0 2px rgba(13,116,118,.08) inset;
}
.signature-upload-form .form-control{
  min-height:52px;
}
@media (max-width: 991.98px){
  .signature-source-grid{
    grid-template-columns:1fr;
  }
}


/* Phase 166 + Phase 175 global table ordering and themed sortable headers */
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header{
  position:relative;
  padding:0 !important;
  vertical-align:middle;
  background:linear-gradient(180deg, rgba(16,109,111,.10) 0%, rgba(16,109,111,.04) 100%) !important;
  border-bottom:1px solid rgba(16,109,111,.16) !important;
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-button{
  all:unset;
  box-sizing:border-box;
  width:calc(100% - 14px);
  min-height:44px;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:.7rem;
  margin:7px;
  padding:.66rem .82rem;
  border-radius:14px;
  border:1px solid rgba(16,109,111,.18) !important;
  background:linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(245,251,251,.94) 100%) !important;
  color:#2d5963 !important;
  font:inherit;
  font-weight:800;
  line-height:1.2;
  text-align:left;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(16,109,111,.08), inset 0 1px 0 rgba(255,255,255,.8) !important;
  transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-button::-moz-focus-inner{
  border:0;
  padding:0;
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-button:hover{
  background:linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(236,247,247,.96) 100%) !important;
  border-color:rgba(16,109,111,.23) !important;
  color:#0f5e5f !important;
  box-shadow:0 10px 20px rgba(16,109,111,.12), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-button:active{
  transform:translateY(1px);
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-button:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(23,130,131,.12), 0 12px 22px rgba(16,109,111,.13) !important;
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-label{
  flex:1 1 auto;
  min-width:0;
  display:inline-flex;
  align-items:center;
  color:inherit;
  font-size:.86rem;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-icon{
  flex:0 0 auto;
  width:1.78rem;
  height:1.78rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(16,109,111,.18) !important;
  background:linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(236,246,246,.95) 100%) !important;
  color:#2d6d75 !important;
  font-size:.78rem;
  font-weight:800;
  line-height:1;
  box-shadow:0 6px 12px rgba(16,109,111,.10) !important;
  transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header.aw-sort-asc,
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header.aw-sort-desc{
  background:linear-gradient(180deg, rgba(16,109,111,.16) 0%, rgba(16,109,111,.08) 100%) !important;
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header.aw-sort-asc .aw-table-sort-button,
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header.aw-sort-desc .aw-table-sort-button{
  border-color:rgba(16,109,111,.26) !important;
  background:linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(233,246,246,.95) 100%) !important;
  color:#0f5e5f !important;
  box-shadow:0 12px 24px rgba(16,109,111,.16), inset 0 -2px 0 rgba(16,109,111,.10) !important;
}
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header.aw-sort-asc .aw-table-sort-icon,
.aw-ui-body .aw-sortable-table thead th.aw-sortable-header.aw-sort-desc .aw-table-sort-icon{
  border-color:transparent !important;
  background:linear-gradient(135deg, #178283 0%, #0f6a6d 100%) !important;
  color:#fff !important;
  box-shadow:0 10px 18px rgba(16,109,111,.18) !important;
  transform:scale(1.04);
}
@media (max-width: 991.98px){
  .aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-button{width:calc(100% - 10px);min-height:40px;margin:5px;padding:.54rem .64rem;gap:.45rem;border-radius:12px;}
  .aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-label{font-size:.76rem;}
  .aw-ui-body .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-icon{width:1.48rem;height:1.48rem;font-size:.66rem;}
}

.aw-interactive-table.table > tbody > tr.aw-data-row.aw-row-active [data-sort-primary="true"]{
  color:var(--aw-primary-dark);
}
.aw-interactive-table.table > tbody > tr.aw-data-row.aw-row-active .mobile-table-subtitle,
.aw-interactive-table.table > tbody > tr.aw-data-row.aw-row-active .text-muted,
.aw-interactive-table.table > tbody > tr.aw-data-row.aw-row-active small{
  color:#58727c !important;
}
.aw-interactive-table.table > tbody > tr.aw-row-empty:hover > *,
.aw-interactive-table.table > tbody > tr.aw-row-empty.aw-row-active > *{
  background:inherit;
  box-shadow:none;
}
@media (max-width: 767.98px){
  .aw-interactive-table.mobile-card-table tr.aw-data-row,
  .table-responsive > .aw-auto-mobile-table.aw-interactive-table:not(.mobile-card-table) tr.aw-data-row{
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
  }
  .aw-interactive-table.mobile-card-table tr.aw-data-row:hover,
  .aw-interactive-table.mobile-card-table tr.aw-data-row:focus-within,
  .table-responsive > .aw-auto-mobile-table.aw-interactive-table:not(.mobile-card-table) tr.aw-data-row:hover,
  .table-responsive > .aw-auto-mobile-table.aw-interactive-table:not(.mobile-card-table) tr.aw-data-row:focus-within{
    transform:translateY(-1px);
    border-color:rgba(23,130,131,.22);
    box-shadow:0 12px 24px rgba(16,109,111,.10);
    background:linear-gradient(180deg, rgba(251,254,254,.98), rgba(240,249,249,.98));
  }
  .aw-interactive-table.mobile-card-table tr.aw-data-row.aw-row-active,
  .table-responsive > .aw-auto-mobile-table.aw-interactive-table:not(.mobile-card-table) tr.aw-data-row.aw-row-active{
    transform:translateY(-1px);
    border-color:rgba(16,109,111,.34);
    box-shadow:0 16px 28px rgba(16,109,111,.14), 0 0 0 1px rgba(23,130,131,.08);
    background:linear-gradient(180deg, rgba(239,249,249,.99), rgba(225,243,243,.98));
  }
  .aw-interactive-table.mobile-card-table tr.aw-data-row.aw-row-active td:first-child,
  .table-responsive > .aw-auto-mobile-table.aw-interactive-table:not(.mobile-card-table) tr.aw-data-row.aw-row-active td:first-child{
    border-top:3px solid rgba(16,109,111,.40);
    padding-top:.45rem !important;
  }
}


/* Phase 174 global mobile-friendly hardening */
html, body{
  overflow-x:hidden;
}
img, svg, canvas, video, iframe{
  max-width:100%;
  height:auto;
}
.app-main,
.app-main > *,
.row,
.row > [class*="col-"],
.content-card,
.metric-card,
.filter-card,
.form-section-card,
.summary-stat,
.detail-item,
.card,
.card-body,
.modal-content,
.offcanvas,
.table-responsive,
.table-action-group,
.page-toolbar,
.page-toolbar > *,
.toolbar-actions,
.filter-actions,
.input-group,
.btn-group{
  min-width:0;
}
.content-card,
.metric-card,
.filter-card,
.form-section-card,
.summary-stat,
.detail-item,
.card,
.card-body,
.modal-content{
  overflow-wrap:anywhere;
}
.table th,
.table td,
.mobile-table-title,
.mobile-table-subtitle,
.metric-value,
.metric-label,
.detail-item-value,
.alert,
.btn,
.badge{
  overflow-wrap:anywhere;
}
.table-responsive{
  width:100%;
}
.table-action-group form{
  margin:0;
}
.table-action-group .btn,
.table-action-group form .btn{
  min-width:0;
}
.aw-ui-body .dropdown-menu{
  max-width:min(92vw, 360px);
}
.aw-ui-body .modal-dialog{
  width:auto;
}
.aw-ui-body .form-check{
  min-width:0;
}
.aw-ui-body .input-group > .form-control,
.aw-ui-body .input-group > .form-select,
.aw-ui-body .input-group > .btn,
.aw-ui-body .btn-group > .btn{
  min-width:0;
}
.aw-ui-body .nav,
.aw-ui-body .nav-item,
.aw-ui-body .nav-link{
  min-width:0;
}

@media (max-width: 991.98px){
  .app-header{
    padding:.8rem .9rem;
    gap:.75rem;
    flex-wrap:wrap;
    align-items:flex-start !important;
  }
  .app-header > .d-flex{
    min-width:0;
    flex-wrap:wrap;
  }
  .app-header .header-title{
    line-height:1.2;
  }
  .app-main{
    padding:1rem !important;
  }
  .content-card,
  .metric-card,
  .filter-card,
  .form-section-card,
  .summary-stat,
  .detail-item,
  .card{
    border-radius:16px;
  }
  .metric-card{
    min-height:0;
  }
  .metric-label{
    white-space:normal;
    line-height:1.2;
  }
  .metric-value{
    line-height:1.05;
  }
  .page-toolbar,
  .filter-actions,
  .table-action-group{
    gap:.6rem;
  }
  .page-toolbar > *,
  .page-toolbar .toolbar-actions,
  .page-toolbar .toolbar-actions .btn,
  .filter-actions .btn,
  .table-action-group .btn,
  .table-action-group form,
  .table-action-group form .btn{
    min-width:0;
  }
  .filter-card .row,
  .content-card .row,
  .form-section-card .row,
  .card .row{
    --bs-gutter-x:.9rem;
    --bs-gutter-y:.9rem;
  }
  .aw-ui-body .table thead th:not(.aw-sortable-header){
    white-space:normal;
  }
  .aw-ui-body .table td{
    white-space:normal;
  }
  .aw-ui-body .modal-dialog{
    margin:.7rem;
  }
  .aw-ui-body .modal-content{
    max-height:calc(100vh - 1.4rem);
    overflow:auto;
  }
  .offcanvas{
    width:min(92vw, 360px) !important;
  }
}

@media (max-width: 767.98px){
  .app-main{
    padding:.75rem !important;
  }
  .app-header{
    padding:.7rem .8rem;
  }
  .app-header .btn{
    min-height:40px;
  }
  .header-title{
    font-size:.88rem;
  }
  .small-muted{
    line-height:1.2;
  }
  .content-card,
  .metric-card,
  .filter-card,
  .form-section-card,
  .summary-stat,
  .detail-item,
  .card,
  .modal-content{
    border-radius:14px;
  }
  .content-card,
  .metric-card,
  .filter-card,
  .form-section-card,
  .summary-stat,
  .detail-item,
  .card-body{
    padding:.85rem;
  }
  .metric-card{
    min-height:0;
  }
  .metric-value{
    font-size:1.35rem;
  }
  .metric-label{
    font-size:.72rem;
  }
  .page-toolbar .toolbar-actions,
  .filter-actions,
  .table-action-group{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    width:100%;
  }
  .page-toolbar .toolbar-actions .btn,
  .filter-actions .btn,
  .table-action-group .btn,
  .table-action-group form,
  .table-action-group form .btn{
    width:100%;
  }
  .table-action-group{
    justify-content:stretch;
  }
  .btn-group,
  .input-group{
    flex-wrap:wrap;
    width:100%;
  }
  .btn-group > .btn,
  .input-group > .btn,
  .input-group > .form-control,
  .input-group > .form-select,
  .input-group > .form-floating,
  .input-group > .form-floating > .form-control,
  .input-group > .form-floating > .form-select{
    width:100% !important;
    flex:1 1 100%;
    margin-left:0 !important;
    border-radius:12px !important;
  }
  .input-group > .btn + .btn,
  .btn-group > .btn + .btn,
  .input-group > .form-control + .btn,
  .input-group > .form-select + .btn,
  .input-group > .form-control + .form-control,
  .input-group > .form-select + .form-select,
  .input-group > .form-control + .form-select,
  .input-group > .form-select + .form-control{
    margin-top:.4rem;
  }
  .pagination-panel,
  .pagination-field,
  .pagination-nav-wrap{
    width:100%;
  }
  .pagination-field{
    padding:.7rem .75rem;
  }
  .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-button{
    min-height:44px;
    padding:.65rem .72rem;
    gap:.45rem;
  }
  .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-label{
    font-size:.78rem;
  }
  .aw-sortable-table thead th.aw-sortable-header .aw-table-sort-icon{
    width:1.45rem;
    height:1.45rem;
    font-size:.68rem;
  }
  .mobile-card-table tr,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) tr{
    border-radius:14px;
  }
  .mobile-card-table td.actions-cell,
  .table-responsive > .aw-auto-mobile-table:not(.mobile-card-table) td.actions-cell{
    margin-top:.5rem;
    padding-top:.6rem !important;
  }
  .filter-card .form-control,
  .filter-card .form-select,
  .content-card .form-control,
  .content-card .form-select,
  .form-section-card .form-control,
  .form-section-card .form-select{
    min-height:44px;
  }
}

@media (max-width: 479.98px){
  .page-toolbar .toolbar-actions,
  .filter-actions,
  .table-action-group{
    grid-template-columns:1fr;
  }
  .content-card,
  .metric-card,
  .filter-card,
  .form-section-card,
  .summary-stat,
  .detail-item,
  .card-body{
    padding:.78rem;
  }
  .app-header{
    padding:.65rem .7rem;
  }
  .app-header .d-flex.align-items-center.gap-2{
    gap:.5rem !important;
  }
  .offcanvas{
    width:94vw !important;
  }
}


.form-danger-zone {
  border: 1px solid rgba(220, 53, 69, 0.18);
  background: linear-gradient(180deg, rgba(220,53,69,0.04), rgba(220,53,69,0.01));
}
.form-danger-zone .form-section-heading {
  color: #b42318;
}


/* Phase 187 inline searchable dropdowns */
.aw-searchable-select-shell{
  position:relative;
  width:100%;
  z-index:2;
}
.aw-searchable-select-shell.is-open{
  z-index:1091;
}
.aw-searchable-open-host{
  overflow:visible !important;
}
.aw-searchable-select-shell + .form-text,
.aw-searchable-select-shell + .invalid-feedback,
.aw-searchable-select-shell + .text-danger{
  margin-top:.2rem;
}
.aw-searchable-select-shell .aw-searchable-select-trigger{
  position:relative;
  width:100%;
}
.aw-searchable-select-shell .aw-searchable-select-input{
  min-height:44px;
  width:100%;
  padding-right:3rem;
  border-radius:14px;
  border:1px solid rgba(16,109,111,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(244,250,250,.97) 100%);
  box-shadow:0 10px 22px rgba(16,109,111,.06);
}
.aw-searchable-select-shell .aw-searchable-select-input:focus{
  border-color:rgba(16,109,111,.38);
  box-shadow:0 0 0 .2rem rgba(16,109,111,.12), 0 10px 24px rgba(16,109,111,.08);
}
.aw-searchable-select-shell .aw-searchable-select-icon{
  position:absolute;
  top:50%;
  right:.95rem;
  width:1rem;
  height:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#2f6f7a;
  transform:translateY(-50%);
  pointer-events:none;
  transition:transform .18s ease, color .18s ease;
}
.aw-searchable-select-shell .aw-searchable-select-icon svg{
  width:100%;
  height:100%;
}
.aw-searchable-select-shell.is-open .aw-searchable-select-icon{
  transform:translateY(-50%) rotate(180deg);
  color:#106d6f;
}
.aw-searchable-select-shell .aw-searchable-select-native{
  position:absolute !important;
  left:0;
  top:0;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
}
.aw-searchable-select-shell .aw-searchable-select-panel{
  position:absolute;
  top:calc(100% + .42rem);
  left:0;
  right:0;
  z-index:1080;
  display:none;
  border:1px solid rgba(16,109,111,.14);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.995) 0%, rgba(245,250,250,.985) 100%);
  box-shadow:0 20px 42px rgba(16,109,111,.14);
  overflow:hidden;
}
.aw-searchable-select-shell.is-open .aw-searchable-select-panel{
  display:block;
}
.aw-searchable-select-shell .aw-searchable-select-menu{
  max-height:260px;
  overflow:auto;
  padding:.38rem;
}
.aw-searchable-select-shell .aw-searchable-select-option{
  width:100%;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  border-radius:12px;
  padding:.7rem .82rem;
  text-align:left;
  color:#17343b;
  transition:background .16s ease, transform .16s ease, box-shadow .16s ease, color .16s ease;
}
.aw-searchable-select-shell .aw-searchable-select-option:hover,
.aw-searchable-select-shell .aw-searchable-select-option.is-active{
  background:rgba(16,109,111,.09);
  color:#0f4f59;
}
.aw-searchable-select-shell .aw-searchable-select-option.is-selected{
  background:rgba(16,109,111,.13);
  color:#0e5257;
  box-shadow:inset 0 0 0 1px rgba(16,109,111,.14);
}
.aw-searchable-select-shell .aw-searchable-select-option:disabled{
  opacity:.48;
  cursor:not-allowed;
}
.aw-searchable-select-shell .aw-searchable-select-option-label{
  flex:1 1 auto;
  min-width:0;
  white-space:normal;
  word-break:break-word;
}
.aw-searchable-select-shell .aw-searchable-select-option-hint{
  flex:0 0 auto;
  font-size:.71rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#63838a;
}
.aw-searchable-select-shell .aw-searchable-select-empty{
  padding:.85rem .92rem;
  border-radius:12px;
  background:rgba(16,109,111,.05);
  color:#5f7f85;
  text-align:center;
  font-size:.88rem;
}
.aw-searchable-select-shell.is-disabled .aw-searchable-select-input{
  opacity:.72;
  cursor:not-allowed;
}
.aw-searchable-select-shell.is-invalid .aw-searchable-select-input,
.aw-searchable-select-shell .aw-searchable-select-input.is-invalid{
  border-color:#dc3545;
  box-shadow:0 0 0 .2rem rgba(220,53,69,.12);
}
.filter-card .aw-searchable-select-shell .aw-searchable-select-input,
.content-card .aw-searchable-select-shell .aw-searchable-select-input,
.form-section-card .aw-searchable-select-shell .aw-searchable-select-input{
  min-height:42px;
}
@media (max-width: 767.98px){
  .aw-searchable-select-shell .aw-searchable-select-input{
    min-height:42px;
  }
  .aw-searchable-select-shell .aw-searchable-select-panel{
    top:calc(100% + .34rem);
  }
  .aw-searchable-select-shell .aw-searchable-select-menu{
    max-height:220px;
  }
}


@media (max-width: 767.98px){
  .aw-page-roles-list .table-action-group{
    justify-content:flex-end;
  }
  .aw-page-roles-list .mobile-card-table td.actions-cell::before{
    text-align:right;
  }
}
