/* صفحات اختصاصی افزونه نسخه/بیمه — فقط داخل همین ماژول‌ها، نه هدر و فوتر قالب. */
.sky-ins-panel,.sky-ticket-hub,.sky-rx-grid,.sky-rx-profile,.sky-rx-account,.sky-rx-v11,.sky-modal-overlay{max-width:100%;min-width:0;box-sizing:border-box}
.sky-ins-panel *,.sky-ticket-hub *,.sky-rx-grid *,.sky-rx-profile *{box-sizing:border-box}
.sky-ins-panel img,.sky-ticket-hub img,.sky-rx-grid img,.sky-rx-profile img{max-width:100%;height:auto}
.sky-ins-panel .sky-ins-table-wrap{max-width:100%;min-width:0;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.sky-ins-panel .sky-ins-filters,.sky-ins-panel .sky-ins-filter-field,.sky-ins-panel .sky-ins-kpi,.sky-ins-panel .sky-ins-toolbar,.sky-ins-panel .sky-ins-tools,.sky-ins-panel .sky-ins-head{min-width:0}
.sky-ins-panel .sky-ins-filter-field :is(input,select,textarea),.sky-ticket-hub :is(input,select,textarea),.sky-modal :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box}
.sky-ins-panel .sky-ins-docs :is(button,a),.sky-ins-panel .sky-ins-tools :is(button,a){white-space:normal;overflow-wrap:anywhere;text-align:center}
.sky-ticket-hub-overlay,.sky-ins-reject-modal,.sky-modal-overlay{box-sizing:border-box}
.sky-ticket-hub .sky-ticket-hub-main,.sky-ticket-hub .sky-ticket-hub-side,.sky-ticket-hub .sky-ticket-hub-toolbar{min-width:0}
.sky-ticket-hub .sky-ticket-hub-search{min-width:0}
.sky-ticket-hub .sky-ticket-hub-top-actions,.sky-ins-panel .sky-ins-head-actions{display:flex;gap:8px;flex-wrap:wrap;min-width:0;align-items:center}
.sky-ticket-hub .sky-ticket-card,.sky-ticket-hub .sky-ticket-hub-card,.sky-ticket-hub .sky-ticket-msg{min-width:0;max-width:100%;overflow-wrap:anywhere}
.sky-ticket-hub .sky-ticket-attachments,.sky-ticket-hub .sky-ticket-hub-toolbar{flex-wrap:wrap}
.sky-ticket-hub .sky-ticket-attachments a{max-width:100%;white-space:normal;word-break:break-word}
.sky-ins-panel .sky-ins-docs .sky-ins-intro-upload,.sky-ins-panel .sky-ins-docs .sky-ins-intro-replace-form{max-width:100%;min-width:0}
@media screen and (max-width:900px){
 .sky-ticket-hub .sky-ticket-hub-body{grid-template-columns:minmax(0,1fr)}
 .sky-ticket-hub .sky-ticket-hub-side{overflow:hidden}
 .sky-ticket-hub .sky-ticket-status-nav{display:flex;flex-wrap:wrap;gap:7px}
 .sky-ticket-hub .sky-ticket-status-nav button{flex:1 1 115px;min-width:0;min-height:40px;white-space:normal}
 .sky-ticket-hub .sky-ticket-hub-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sky-ins-panel .sky-ins-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 .sky-ins-panel .sky-ins-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:767px){
 .sky-ins-panel{width:100%;max-width:100%;padding-inline:0!important}
 .sky-ins-panel .sky-ins-head{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 .sky-ins-panel .sky-ins-head h2{font-size:18px;line-height:1.6}
 .sky-ins-panel .sky-ins-head-actions{width:100%;align-items:stretch}
 .sky-ins-panel .sky-ins-head-actions .sky-ins-btn{flex:1 1 130px;max-width:100%;white-space:normal;min-height:42px}
 .sky-ins-panel .sky-ins-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 .sky-ins-panel .sky-ins-kpi{padding:10px!important;min-width:0}
 .sky-ins-panel .sky-ins-kpi strong{font-size:15px;overflow-wrap:anywhere}
 .sky-ins-panel .sky-ins-filters{padding:11px!important}
 .sky-ins-panel .sky-ins-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .sky-ins-panel .sky-ins-toolbar,.sky-ins-panel .sky-ins-tools,.sky-ins-panel .sky-ins-presets{display:flex;flex-wrap:wrap;align-items:stretch;gap:7px}
 .sky-ins-panel .sky-ins-tools>*,.sky-ins-panel .sky-ins-presets button{flex:1 1 120px;min-width:0;min-height:40px}
 .sky-ins-panel .sky-ins-table-wrap{max-width:100%;min-width:0;overflow-x:auto!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
 .sky-ins-panel .sky-ins-table{display:table;min-width:1000px}
 .sky-modal-overlay{padding:10px!important;overflow-y:auto}
 .sky-modal-overlay .sky-modal{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 20px)!important;padding:14px!important;border-radius:14px!important;overflow-x:hidden;overflow-y:auto}
 .sky-modal .sky-ticket-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .sky-modal .sky-modal-actions{flex-wrap:wrap;justify-content:stretch}
 .sky-modal .sky-modal-actions button{flex:1 1 125px;min-height:42px;line-height:1.5;white-space:normal}
 .sky-ins-reject-modal{padding:10px!important}
 .sky-ins-reject-modal .sky-ins-reject-dialog{max-width:100%;max-height:calc(100dvh - 20px);overflow-y:auto;padding:14px}
 .sky-ticket-hub .sky-ticket-hub-top{height:auto;min-height:60px;padding:10px!important;flex-wrap:wrap}
 .sky-ticket-hub .sky-ticket-hub-title{min-width:0}
 .sky-ticket-hub .sky-ticket-hub-title strong{font-size:15px}
 .sky-ticket-hub .sky-ticket-hub-main{padding:10px!important;overflow-x:hidden}
 .sky-ticket-hub .sky-ticket-hub-toolbar{align-items:stretch}
 .sky-ticket-hub .sky-ticket-hub-search{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;flex:1 1 100%}
 .sky-ticket-hub .sky-ticket-hub-search input{grid-column:1/-1}
 .sky-ticket-hub .sky-ticket-hub-search select{min-width:0;width:100%}
 .sky-ticket-hub .sky-ticket-hub-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sky-ticket-hub .sky-ticket-hub-side{padding:8px!important}
 .sky-ticket-hub .sky-ticket-status-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .sky-ticket-hub .sky-ticket-status-nav button{width:100%;min-width:0;white-space:normal}
 .sky-ticket-hub .sky-ticket-thread{max-height:45dvh;overflow:auto}
 .sky-rx-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .sky-rx-grid .sky-rx-card{min-width:0;max-width:100%}
 .sky-rx-grid .sky-rx-images-container{max-width:100%}
 .sky-rx-grid .sky-rx-img-box{min-width:0}
}
@media screen and (max-width:470px){
 .sky-ins-panel .sky-ins-filter-grid{grid-template-columns:minmax(0,1fr)!important}
 .sky-ins-panel .sky-ins-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sky-ins-panel .sky-ins-head-actions .sky-ins-btn{flex:1 1 100%}
 .sky-ticket-hub .sky-ticket-status-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sky-ticket-hub .sky-ticket-hub-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sky-modal .sky-ticket-row{grid-template-columns:minmax(0,1fr)}
 .sky-rx-grid{grid-template-columns:minmax(0,1fr)!important}
 .sky-rx-grid .sky-rx-images-container{height:160px}
}
@media (prefers-reduced-motion:reduce){.sky-ins-panel *, .sky-ticket-hub *, .sky-modal-overlay *{transition-duration:0.01ms!important;animation-duration:0.01ms!important}}

/* 13.18.1 — داشبورد گزارش بیمه در موبایل: ۲ باکس در هر ردیف. */
@media screen and (max-width:767px){
  .sky-ins-panel .sky-ins-kpis{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    width:100%;
  }
  .sky-ins-panel .sky-ins-kpis>.sky-ins-kpi{
    min-width:0;
    width:auto;
    min-height:0;
    padding:12px 10px!important;
    overflow:hidden;
    border-radius:13px;
  }
  .sky-ins-panel .sky-ins-kpi small{font-size:11px;line-height:1.7;margin-bottom:5px}
  .sky-ins-panel .sky-ins-kpi strong{font-size:clamp(14px,3.8vw,19px)!important;line-height:1.6;overflow-wrap:anywhere}
  .sky-ins-panel .sky-ins-kpi:is(.sky-ins-kpi-insurance,.sky-ins-kpi-patient) strong{
    font-size:clamp(12px,3.25vw,16px)!important;
  }
  .sky-ins-panel .sky-ins-kpi span{font-size:10px;line-height:1.7;margin-top:3px}
  .sky-ins-panel .sky-ins-head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .sky-ins-panel .sky-ins-head-actions>.sky-ins-btn{width:100%;min-width:0;min-height:42px}
  .sky-ins-panel .sky-ins-head-actions>.sky-ins-head-badge{grid-column:1/-1;text-align:center}
  .sky-ins-panel .sky-ins-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .sky-ins-panel .sky-ins-filter-grid>.sky-ins-filter-field{min-width:0}
  .sky-ins-panel .sky-ins-filter-grid>.sky-ins-filter-field:last-child:nth-child(odd){grid-column:1/-1}
  .sky-ins-panel .sky-ins-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
  .sky-ins-panel .sky-ins-filter-actions>.sky-ins-filter-field{grid-column:1/-1;min-width:0!important;width:100%}
  .sky-ins-panel .sky-ins-filter-actions>.sky-ins-btn{min-width:0;min-height:42px;justify-content:center;padding-inline:7px;white-space:normal;text-align:center}
  .sky-ins-panel .sky-ins-filter-actions>.sky-ins-presets{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}
  .sky-ins-panel .sky-ins-presets button{min-width:0;flex:1 1 calc(33.33% - 6px);min-height:38px;padding:7px 5px}
}
@media screen and (max-width:360px){
  .sky-ins-panel .sky-ins-kpis{gap:7px!important}
  .sky-ins-panel .sky-ins-kpis>.sky-ins-kpi{padding:9px 8px!important}
  .sky-ins-panel .sky-ins-filter-actions>.sky-ins-btn{font-size:11px}
}


/* v13.19.2 — نظم نوار فیلتر فقط در دسکتاپ؛ موبایل و اسکرول جدول بدون تغییر. */
@media screen and (min-width: 901px) {
  .sky-ins-panel .sky-ins-filters {
    padding: 18px 20px;
  }
  .sky-ins-panel .sky-ins-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 12px;
    align-items: end;
  }
  .sky-ins-panel .sky-ins-filter-grid>.sky-ins-filter-field { min-width: 0; }
  .sky-ins-panel .sky-ins-filter-field label {
    display:block;
    min-height:18px;
    line-height:1.55;
    margin:0 0 7px;
    text-align:right;
  }
  .sky-ins-panel .sky-ins-filter-grid :is(input,select),
  .sky-ins-panel .sky-ins-filter-actions .sky-ins-filter-field input {
    width:100%;
    height:42px;
    margin:0;
  }
  .sky-ins-panel .sky-ins-filter-actions {
    display:grid;
    grid-template-columns:minmax(180px,1fr) auto auto auto;
    align-items:end;
    gap:9px;
    margin-top:16px;
  }
  .sky-ins-panel .sky-ins-filter-actions>.sky-ins-filter-field {
    min-width:0!important;
    width:auto;
    flex:none!important;
  }
  .sky-ins-panel .sky-ins-filter-actions>.sky-ins-btn {
    min-height:42px;
    padding:8px 14px;
    margin:0;
    white-space:nowrap;
    text-align:center;
  }
  .sky-ins-panel .sky-ins-filter-actions>.sky-ins-presets {
    display:flex;
    align-items:stretch;
    flex-wrap:nowrap;
    justify-content:flex-end;
    align-self:end;
    gap:5px;
    min-height:42px;
    margin:0;
  }
  .sky-ins-panel .sky-ins-filter-actions .sky-ins-presets button {
    min-height:42px;
    padding:6px 9px;
    margin:0;
    line-height:1.3;
    white-space:nowrap;
    font-size:11px;
  }
}
@media screen and (min-width: 901px) and (max-width: 1120px) {
  .sky-ins-panel .sky-ins-filter-actions {grid-template-columns:minmax(160px,1fr) auto auto;}
  .sky-ins-panel .sky-ins-filter-actions>.sky-ins-presets {
    grid-column:1/-1;
    justify-content:flex-start;
    min-height:36px;
  }
  .sky-ins-panel .sky-ins-filter-actions .sky-ins-presets button {min-height:36px;}
}
