/* Fartak Server - shared mobile experience */
@media (max-width: 991.98px) {
  html,body{max-width:100%;overflow-x:hidden}
  body.app{background:#f3f7fc!important;-webkit-text-size-adjust:100%}
  .app-content{width:100%!important;min-width:0!important;margin-right:0!important;margin-left:0!important;padding:0!important;overflow:visible!important}
  .app-content>.container,.app-content>.container-fluid,#main-body>.container,#main-body>.container-fluid{width:100%!important;max-width:100%!important;padding-right:14px!important;padding-left:14px!important}
  #main-body{padding-top:16px!important;padding-bottom:28px!important}
  .primary-content,.main-content,.content-area{min-width:0!important}

  header.header{position:relative!important;z-index:30;margin:8px!important;border:1px solid #e0e8f2!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 34px rgba(15,23,42,.08)!important;overflow:visible!important}
  header.header .master-breadcrumb{min-height:42px;padding:0!important;border-bottom:1px solid #edf1f6!important;border-radius:18px 18px 0 0!important;background:#f8fafc!important}
  header.header .master-breadcrumb .container{padding:10px 14px!important}
  header.header .breadcrumb{margin:0!important;padding:0!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}
  header.header .navbar{min-height:66px;padding:9px 10px!important}
  header.header .navbar>.container{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:7px;padding:0!important}
  header.header .navbar-brand{position:static!important;right:auto!important;left:auto!important;display:flex;align-items:center;min-width:0;margin:0 auto 0 0!important;padding:0!important}
  header.header .navbar-brand img{display:block;max-width:118px!important;max-height:42px!important;object-fit:contain}
  header.header .toolbar{display:flex!important;flex:0 0 auto;flex-direction:row!important;align-items:center;gap:5px;margin:0!important;padding:0!important}
  header.header .toolbar .nav-item{margin:0!important}
  header.header .toolbar .btn,header.header [data-toggle="sidebar"]{display:grid!important;place-items:center;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid #dce5ef!important;border-radius:12px!important;background:#f8fafc!important;color:#52657d!important;box-shadow:none!important}
  header.header .toolbar .btn:hover,header.header [data-toggle="sidebar"]:hover{border-color:#bdd1f5!important;background:#eef5ff!important;color:#2563eb!important}
  header.header .client-top-access-item-count{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:2px solid #fff;border-radius:20px;background:#2563eb;color:#fff;font:700 10px/1 Arial}
  header.header #notifications{position:relative}
  header.header .nav-item.d-xl-none{position:static!important;right:auto!important;left:auto!important;flex:0 0 auto;margin:0!important}
  header.header form.form-inline{display:none!important}

  .nabsbar{z-index:1080!important;max-width:min(86vw,310px)!important;box-shadow:-18px 0 45px rgba(15,23,42,.2)!important}
  .nabsbar .nab-menu a{min-height:48px!important}
  .nabsbar .logo-img{padding:18px 12px!important}
  .nabsbar .logo-img img{max-width:135px!important}

  .row{min-width:0}
  .card,.panel,.well,.invoice-container,.ticket-reply{max-width:100%;border-radius:16px!important}
  .card-body,.panel-body{padding:17px!important}
  .card-header,.panel-heading{padding:14px 16px!important}
  h1,.h1{font-size:clamp(23px,6vw,30px)!important;line-height:1.45!important}
  h2,.h2{font-size:clamp(20px,5vw,26px)!important;line-height:1.5!important}
  h3,.h3{font-size:18px!important;line-height:1.6!important}
  p,.alert,.list-group-item{line-height:1.9}

  a,button,.btn,input[type="button"],input[type="submit"],select{touch-action:manipulation}
  .btn:not(.btn-sm):not(.close){min-height:44px;padding:10px 16px;border-radius:11px}
  .btn-group{max-width:100%;flex-wrap:wrap;gap:7px}
  .form-group{margin-bottom:15px}
  .form-control,.custom-select,select.form-control,.input-group-text{min-height:48px!important;font-size:16px!important;border-radius:11px!important}
  textarea.form-control{min-height:120px!important}
  input[type="checkbox"],input[type="radio"]{min-width:19px;min-height:19px;accent-color:#2563eb}
  label{line-height:1.75}

  .table-responsive,.dataTables_wrapper{display:block;width:100%;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .table-responsive table,.dataTables_wrapper table{margin-bottom:4px;white-space:nowrap}
  table.table th,table.table td{padding:12px 13px!important;vertical-align:middle!important}
  .dataTables_wrapper .row{gap:10px;margin:0!important}
  .dataTables_wrapper [class*="col-"]{padding:0!important}
  .pagination{flex-wrap:wrap;gap:5px;justify-content:center}
  .pagination .page-link{min-width:40px;min-height:40px;display:grid;place-items:center;border-radius:9px!important}

  .sidebar{margin-top:18px!important}
  .sidebar .card-sidebar,.sidebar .panel{margin-bottom:14px!important}
  .sidebar .list-group-item{min-height:46px;padding:12px 15px!important}
  .alert{padding:14px 15px!important;font-size:13px}
  .modal-dialog{width:auto!important;max-width:calc(100vw - 24px)!important;margin:12px auto!important}
  .modal-content{max-height:calc(100vh - 24px);overflow:hidden}
  .modal-body{overflow-y:auto;-webkit-overflow-scrolling:touch}
  .dropdown-menu{max-width:calc(100vw - 24px);max-height:70vh;overflow-y:auto}

  footer.bg-footer{width:auto!important;margin:24px 10px 10px!important;border-radius:20px!important}
  footer.bg-footer .container{padding-right:18px!important;padding-left:18px!important}
  .app-content,#main-body,section#main-body{min-height:0!important;height:auto!important}
  .wow{visibility:visible!important;opacity:1!important;animation:none!important;transform:none!important}
}

@media (max-width: 767.98px) {
  #main-body>.container,#main-body>.container-fluid{padding-right:10px!important;padding-left:10px!important}
  .camelon{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-right:0!important;margin-left:0!important}
  .camelon>[class*="col-"]{width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
  .camelon .card{height:auto!important;min-height:142px!important;margin:0!important}
  .camelon .widtet{display:flex!important;flex-direction:column;align-items:center;justify-content:center;padding:17px 9px!important;text-align:center!important}
  .camelon .widget-core{width:54px!important;height:54px!important;margin:0 0 10px!important}
  .camelon .widget-core .fad{font-size:34px!important}
  .camelon h2{width:100%!important;margin-right:auto!important;margin-left:auto!important;font-size:16px!important;text-align:center!important}
  .camelon .fs-14{width:100%!important;font-size:11px!important;line-height:1.7!important;text-align:center!important}
  .camelon>[class*="col-"]:last-child{grid-column:1/-1}
  .camelon>[class*="col-"]:last-child .card{min-height:112px!important}
  .camelon>[class*="col-"]:last-child .widtet{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;grid-template-rows:auto auto;align-items:center!important;justify-content:stretch!important;column-gap:14px;padding:17px 20px!important;text-align:right!important}
  .camelon>[class*="col-"]:last-child .widget-core{grid-row:1/3;grid-column:1;margin:0!important}
  .camelon>[class*="col-"]:last-child h2,.camelon>[class*="col-"]:last-child .fs-14{grid-column:2;min-width:0;margin:0!important;overflow-wrap:anywhere;text-align:center!important}
  .camelon>[class*="col-"]:last-child h2{align-self:end}
  .camelon>[class*="col-"]:last-child .fs-14{align-self:start;margin-top:5px!important}
  .client-home-cards .card-body{padding:15px 12px!important}
  .client-home-cards{margin-top:16px!important}
  .client-home-cards>.row{gap:14px;margin:0!important}
  .client-home-cards>.row>[class*="col-"]{padding:0!important;margin:0!important}
  .client-home-cards .card,.client-home-cards .card.tabs{min-height:0!important;margin:0!important}
  .client-home-cards .ai-icon svg{width:72px!important;height:80px!important;margin:4px auto!important}
  .custom-tab-1 .nav-tabs{display:flex;align-items:center;justify-content:space-between;gap:8px;overflow-x:auto;white-space:nowrap}
  .custom-tab-1 .nav-tabs .nav-link{min-height:42px;padding:9px 12px}
  .custom-tab-1 .nav-tabs>h3{flex:0 0 auto;margin:0!important}
  .custom-tab-1 .nav-tabs .btn-rounded{display:flex!important;align-items:center;gap:7px;min-height:42px!important;margin:0!important;padding:7px 11px!important;font-size:12px!important}
  .custom-tab-1 .nav-tabs .btn-icon-left{position:static!important;display:grid!important;place-items:center;width:27px!important;height:27px!important;margin:0!important;padding:0!important;transform:none!important}

  #order-standard_cart .cart-body,#order-standard_cart .cart-sidebar{width:100%!important;max-width:100%!important;padding-right:0!important;padding-left:0!important}
  #order-standard_cart .cart-sidebar{margin-top:20px!important}
  #order-standard_cart .cart-body>.header-lined{margin-bottom:18px!important}
  #order-standard_cart .cart-body>.header-lined h1{font-size:24px!important}
  #order-standard_cart .products{margin:0!important}
  #order-standard_cart .product,#order-standard_cart .product-info,#order-standard_cart .view-cart-items{border-radius:15px!important}
  #order-standard_cart .domain-input-group,#order-standard_cart .domain-checker-container{max-width:100%;overflow:visible}

  .invoice-container{padding:15px!important}
  .invoice-container .invoice-header{display:block!important;text-align:center}
  .invoice-container .pull-left,.invoice-container .pull-right{float:none!important;width:100%;text-align:center!important}
  .ticket-reply .user,.ticket-reply .message{width:100%!important;float:none!important}
  .ticket-reply .user{border-radius:14px 14px 0 0!important}
  .ticket-reply .message{border-radius:0 0 14px 14px!important}
}

@media (max-width: 575.98px) {
  header.header{margin:6px!important;border-radius:15px!important}
  header.header .master-breadcrumb{display:none!important}
  header.header .navbar{min-height:62px!important;padding:8px!important}
  header.header .navbar-brand img{max-width:96px!important;max-height:36px!important}
  header.header .toolbar{gap:4px}
  header.header .toolbar .btn,header.header [data-toggle="sidebar"]{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;border-radius:11px!important}
  .app-content>.container,.app-content>.container-fluid,#main-body>.container,#main-body>.container-fluid{padding-right:8px!important;padding-left:8px!important}
  #main-body{padding-top:11px!important}
  .card-body,.panel-body{padding:14px!important}
  .sub-heading span{max-width:100%;white-space:normal!important;line-height:1.7!important}
  .input-group{max-width:100%;flex-wrap:nowrap}
  .input-group>.form-control{min-width:0}
  .btn-block,.form-actions .btn,.modal-footer .btn{width:100%}
  .modal-footer{display:grid!important;grid-template-columns:1fr;gap:8px}
  footer.bg-footer{clear:both!important;margin:18px 6px 6px!important}
}

@media (max-width: 379.98px) {
  header.header .navbar-brand img{max-width:82px!important}
  header.header .toolbar .nav-item:first-child{display:none}
  .camelon{grid-template-columns:1fr}
  .camelon .card{min-height:126px!important}
  .camelon .widtet{display:grid!important;grid-template-columns:52px 1fr;column-gap:12px;text-align:right!important}
  .camelon .widget-core{grid-row:1/3;margin:0!important}
}
