/* Infinity Telecom — phone layout only. Desktop/PC remains on the existing stylesheet. */
.mobileInfinityMark,.telecomMobileControlLink,.mobileNumberSearchBtn,.mobileServiceQuickRow,.mobileHistoryMore{display:none}

@media (max-width:700px){
  html,body{max-width:100%;overflow-x:hidden}
  body{min-height:0;background:
    radial-gradient(circle at 78% 7%,rgba(var(--ui-accent-rgb,119,92,255),.22),transparent 28%),
    radial-gradient(circle at 12% 28%,rgba(0,187,255,.10),transparent 30%),
    linear-gradient(180deg,#031126 0%,#021022 56%,#020d1d 100%)!important;background-attachment:fixed!important}
  .app{width:100%;min-height:0!important;padding:14px 14px 18px!important}

  /* Header */
  .topbar{position:relative!important;height:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;gap:9px!important;padding:2px 2px 14px!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .brand{grid-row:1!important;display:flex!important;align-items:center!important;gap:9px!important;min-width:0;font-size:26px!important;line-height:1!important}
  .brandMark{display:none!important}
  .mobileInfinityMark{display:block!important;width:46px;height:40px;flex:0 0 46px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(var(--ui-accent-rgb,119,92,255),.42))}
  .brand>span:last-child{display:block;min-width:0;font-size:clamp(23px,7.3vw,29px)!important;font-weight:900!important;letter-spacing:-.7px;background:linear-gradient(90deg,#f8fbff 0 48%,#8e5cff 71%,#c342ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important;white-space:nowrap}
  .userArea.show{grid-row:2!important;display:flex!important;width:100%!important;min-width:0!important;min-height:38px;align-items:center!important;justify-content:flex-start!important;gap:9px!important;padding:0 96px 0 4px!important;white-space:nowrap!important;overflow:hidden;color:#fff!important}
  #userEmail{max-width:88px;overflow:hidden;text-overflow:ellipsis;color:#f3f7ff!important;font-size:12px!important;font-weight:800}
  .onlineBadge{padding:0!important;border:0!important;background:none!important;color:#20f4ce!important;font-size:0!important;box-shadow:none!important}
  .onlineBadge::after{content:"● APP ONLINE";font-size:11px!important;font-weight:900;letter-spacing:.15px}
  #logoutButton{height:32px!important;padding:0 5px!important;border:0!important;background:transparent!important;color:#f1f5ff!important;font-size:12px!important;box-shadow:none!important}
  .topActions{grid-row:3!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;width:100%!important;min-width:0!important;justify-content:stretch!important;margin-top:2px}
  .topActions .mfsDashboardLink{display:flex!important;height:72px!important;min-width:0!important;padding:8px 4px!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1.5px solid #1ca8ff!important;border-radius:13px!important;background:linear-gradient(135deg,#0d55d9,#12359f 64%,#22146b)!important;color:#f8fbff!important;font-size:clamp(10px,3vw,13px)!important;font-weight:850!important;line-height:1.12;text-align:center;text-decoration:none!important;white-space:normal!important;box-shadow:inset 0 0 22px rgba(47,142,255,.10),0 8px 22px rgba(0,0,0,.22)!important;transform:none!important}
  .topActions .mfsDashboardLink::before{display:block;color:#dce8ff;font-size:23px;line-height:1;text-shadow:0 0 12px rgba(84,102,255,.48)}
  #mfsDashboardButton{border-color:#d535ff!important;background:linear-gradient(135deg,#7029f8,#3114ae)!important}
  #mfsDashboardButton::before{content:"▦"}
  .topActions>a[href="business.html"]::before{content:"▥";font-weight:1000}
  .telecomMobileControlLink{border-color:#e33cff!important;background:linear-gradient(135deg,#7929ef,#3712a1)!important}
  .telecomMobileControlLink::before{content:"⚙";font-size:25px!important}
  .colorButton{position:absolute!important;z-index:2;top:47px;right:2px;width:88px!important;height:40px!important;padding:0 8px!important;border:1px solid #1da7e9!important;border-radius:11px!important;background:linear-gradient(135deg,#092d5b,#081a39)!important;color:#eaf7ff!important;font-size:12px!important;font-weight:850!important;box-shadow:0 7px 18px rgba(0,0,0,.22)!important}

  /* Number card */
  .inputPanel{position:relative!important;margin-top:2px!important;padding:17px 15px 15px!important;display:block!important;border:1px solid #07568e!important;border-radius:14px!important;background:linear-gradient(150deg,rgba(6,28,54,.96),rgba(2,17,35,.96))!important;box-shadow:0 12px 30px rgba(0,0,0,.22)!important}
  .inputColumn,.numberColumn{width:100%!important;min-width:0!important;padding:0!important;border:0!important}
  .label{margin:0 0 9px!important;color:#bed5f4!important;font-size:11px!important;font-weight:850!important;letter-spacing:.7px!important}
  .numberColumn .field{height:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 50px!important;grid-template-rows:52px 48px!important;gap:10px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  #numberInput{grid-column:1;grid-row:1;width:100%!important;height:52px!important;min-width:0;padding:0 14px!important;border:1px solid #28629a!important;border-radius:12px!important;background:#06172c!important;color:#f7fbff!important;font-size:18px!important;font-weight:750!important;letter-spacing:.6px!important;box-shadow:inset 0 0 0 1px rgba(38,125,209,.08)!important}
  #numberInput::placeholder{color:#6f91bd!important;font-weight:650}
  .mobileNumberSearchBtn{grid-column:2;grid-row:1;display:grid!important;width:50px;height:52px;padding:0;place-items:center;border:1px solid #c833ff;border-radius:12px;background:linear-gradient(135deg,#7c23f1,#4413c7);color:#fff;box-shadow:0 0 20px rgba(119,45,255,.28);cursor:pointer}
  .mobileNumberSearchBtn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .saveCustomerNameBtn{grid-column:1/-1;grid-row:2;width:100%!important;height:48px!important;padding:0 12px!important;border:1px solid #c938f3!important;border-radius:12px!important;background:rgba(59,15,108,.22)!important;color:#bd3dff!important;font-size:14px!important;font-weight:850!important;box-shadow:inset 0 0 18px rgba(163,54,255,.06)!important}
  .inputHelp{margin:10px 2px 0!important;color:#a6bad7!important;font-size:11px!important;line-height:1.35}
  .status{left:15px!important;right:15px;bottom:-25px!important;font-size:11px}
  #smsSyncTestCard{display:none!important;margin:0!important;padding:0!important;height:0!important;min-height:0!important}

  /* Preview / service / amount */
  .previewPanel{position:relative!important;margin-top:14px!important;min-height:0!important;padding:17px 14px 14px!important;border:1px solid #075c99!important;border-radius:14px!important;background:linear-gradient(155deg,rgba(4,26,52,.98),rgba(2,16,34,.98))!important;box-shadow:inset 0 0 34px rgba(25,120,255,.04),0 12px 30px rgba(0,0,0,.22)!important}
  .rightTitle{text-align:left!important;color:#c0d4ee!important;font-size:11px!important;font-weight:850!important;letter-spacing:.65px!important}
  .bigNumberWrap{width:100%!important;min-height:60px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:4px 0 6px!important}
  .selectedServicePreviewIcon{width:30px!important;height:30px!important;flex:0 0 30px!important;border-radius:8px!important}
  .bigNumber{margin:0!important;color:var(--ui-accent,#775cff)!important;font-size:clamp(30px,9.4vw,40px)!important;font-weight:1000!important;letter-spacing:1px!important;line-height:1!important;text-shadow:0 0 18px rgba(var(--ui-accent-rgb,119,92,255),.44)!important}
  .groups{display:none!important}
  .mobileServiceQuickRow{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;width:100%;margin:8px 0 17px}
  .mobileQuickService{position:relative;display:flex;aspect-ratio:1/1;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:5px 3px;border:1px solid #2d8bd0;border-radius:10px;background:linear-gradient(155deg,#071a30,#061529);color:#c9ddf5;overflow:hidden;box-shadow:inset 0 0 18px rgba(50,139,219,.06);cursor:pointer}
  .mobileQuickService img{display:block;width:30px;height:30px;object-fit:contain;border-radius:7px;background:#fff;padding:3px}
  .mobileQuickService span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7.5px;font-weight:850;line-height:1.1}
  .mobileQuickService.active{border-color:var(--ui-accent,#775cff);background:linear-gradient(155deg,rgba(var(--ui-accent-rgb,119,92,255),.22),#07182d);box-shadow:0 0 0 1px rgba(var(--ui-accent-rgb,119,92,255),.25),0 0 17px rgba(var(--ui-accent-rgb,119,92,255),.28)}
  .mobileQuickService kbd{display:none!important}
  .customerSummary{margin:0 0 12px!important;padding:8px!important;gap:7px!important;border-radius:10px!important}
  .customerSummary>div{min-height:48px!important;padding:8px!important}
  .customerSummary small{font-size:8px!important}.customerSummary strong{font-size:12px!important}
  .summary{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;margin:0!important}
  .summaryCard{width:100%!important;min-height:82px!important;padding:13px 16px!important;border:1px solid #07578f!important;border-radius:13px!important;background:linear-gradient(150deg,#07192f,#061426)!important;box-shadow:none!important}
  .summaryCard:hover{transform:none!important}
  .summaryServiceCard{order:1}
  .summaryAmountCard{order:2}
  .summaryDateCard{display:none!important}
  .summaryIcon{width:40px!important;height:40px!important;flex:0 0 40px!important;border-radius:9px!important;font-size:20px!important;background:rgba(var(--ui-accent-rgb,119,92,255),.13)!important;color:#c341ff!important}
  .summarySelectorContent{min-width:0!important;flex:1}
  .summaryLabel{color:#bdd2ee!important;font-size:10px!important;font-weight:850!important;letter-spacing:.65px!important}
  .summarySelectorValue{margin-top:7px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px}
  .summaryValue{margin:0!important;color:#f4f8ff!important;font-size:16px!important;font-weight:850!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .summaryChevron{font-size:20px!important;color:#5686c5!important}
  .directAmountCard{display:flex!important;align-items:center!important}
  .directAmountContent{min-width:0!important;flex:1}
  .directAmountField{margin-top:6px!important;display:flex!important;align-items:center!important;gap:7px!important}
  .directAmountField>span{font-size:24px!important;color:#eaf4ff!important}
  .directAmountField input{height:38px!important;font-size:28px!important;font-weight:500!important;color:#eef5ff!important}
  .serviceChoiceMenu{z-index:80!important;width:100%!important;grid-template-columns:1fr!important;left:0!important;right:0!important;top:calc(100% + 8px)!important;bottom:auto!important}
  .verificationNotice,.verificationBanner{display:none!important;margin:0!important;padding:0!important;height:0!important;min-height:0!important;border:0!important}

  /* Telecom history becomes readable mobile cards; all existing row actions remain available. */
  .dashboardGrid{display:block!important;margin-top:14px!important}
  .telecomMfsHistoryCard{min-height:0!important;padding:15px 13px!important;border:1px solid #075b94!important;border-radius:14px!important;background:linear-gradient(155deg,#061a31,#041226)!important;box-shadow:0 12px 28px rgba(0,0,0,.20)!important}
  .telecomMfsHistoryHead{display:flex!important;align-items:stretch!important;flex-direction:column!important;gap:10px!important;padding-bottom:10px!important;border-bottom:0!important;text-align:center}
  .telecomMfsHistoryHead>div:first-child small{display:none!important}
  .telecomMfsHistoryHead>div:first-child b{display:block;color:#f4f8ff!important;font-size:15px!important;font-weight:850!important;line-height:1.25}
  .telecomMfsHistoryTools{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important}
  .telecomMfsHistoryTools input{width:100%!important;height:46px!important;padding:0 13px!important;border:1px solid #28649a!important;border-radius:11px!important;background:#06172c!important;color:#edf5ff!important;font-size:12px!important}
  .telecomMfsHistoryTools button{width:100%!important;height:42px!important;padding:0 12px!important;border:1px solid #00c8f8!important;border-radius:11px!important;background:#051b30!important;color:#26d7ff!important;font-size:12px!important;font-weight:850!important}
  .telecomMfsHistoryTableWrap{max-height:none!important;overflow:visible!important;margin-top:0!important;border:0!important;border-radius:0!important}
  .telecomMfsHistoryTableWrap table{display:block!important;width:100%!important;min-width:0!important;border-collapse:separate!important}
  .telecomMfsHistoryTableWrap thead{display:none!important}
  .telecomMfsHistoryTableWrap tbody{display:grid!important;width:100%!important;gap:8px!important}
  .telecomMfsHistoryTableWrap tbody tr{display:grid!important;width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"number service" "time profit" "amount profit" "action action"!important;column-gap:9px!important;row-gap:4px!important;padding:11px 12px!important;border:1px solid #1d5683!important;border-radius:11px!important;background:linear-gradient(155deg,#071a31,#061426)!important;box-shadow:none!important}
  .telecomMfsHistoryTableWrap td{display:block!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;color:#d8e6f8!important;font-size:11px!important;line-height:1.35!important}
  .telecomMfsHistoryTableWrap tbody tr:hover td{background:transparent!important}
  .telecomMfsHistoryTableWrap td:nth-child(1){grid-area:time;color:#9eb5d4!important;font-size:10px!important}
  .telecomMfsHistoryTableWrap td:nth-child(2){grid-area:number;color:#f5f8ff!important;font-size:13px!important;font-weight:850!important;overflow:hidden}
  .telecomMfsHistoryTableWrap td:nth-child(2)>b{font-size:13px!important;color:#f5f8ff!important}
  .telecomHistoryCustomerName{display:block!important;margin-top:2px;color:#7f9dbb!important;font-size:8px!important;font-weight:650!important}
  .telecomMfsHistoryTableWrap td:nth-child(3){grid-area:service;align-self:start;justify-self:end;max-width:132px;text-align:right;color:#ffad19!important;font-size:10px!important;font-weight:900!important}
  .telecomHistoryService{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;color:#ffad19!important}
  .telecomHistoryServiceLogo{width:18px!important;height:18px!important;flex:0 0 18px!important}
  .telecomHistoryService>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .telecomMfsHistoryTableWrap td:nth-child(4){grid-area:amount;color:#dce9f7!important;font-weight:800!important}
  .telecomMfsHistoryTableWrap td:nth-child(4)::before{content:"Amount  ";color:#b2c4dd;font-weight:650}
  .telecomMfsHistoryTableWrap td:nth-child(5){grid-area:profit;align-self:center;justify-self:end}
  .telecomHistoryProfit{display:inline-block!important;min-width:88px;padding:7px 9px!important;border:1px solid #04a85e!important;border-radius:9px!important;background:#063e31!important;color:#20f0a4!important;text-align:center;font-size:10px!important;font-weight:850!important}
  .telecomMfsHistoryTableWrap td:nth-child(6){grid-area:action;margin-top:3px}
  .telecomHistoryActions{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  .telecomMfsHistoryTableWrap .telecomHistoryActions button{height:28px!important;padding:0 8px!important;border-radius:7px!important;font-size:8px!important}
  .telecomMfsHistoryTableWrap td.telecomHistoryEmpty{grid-column:1/-1!important;grid-area:auto!important;padding:22px 4px!important;text-align:center!important;color:#7894b3!important}
  .mobileHistoryMore{display:flex!important;width:100%;height:42px;margin-top:9px;align-items:center;justify-content:center;gap:10px;border:1px solid #00c9f7;border-radius:10px;background:#051a2f;color:#20d5ff;font-size:12px;font-weight:850;cursor:pointer}
  .mobileHistoryMore span{font-size:17px;line-height:1}

  /* Footer: compact, same existing information. */
  .appFooter{min-height:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;padding:15px 2px 2px!important;color:#899eb9!important;font-size:10px!important;text-align:center!important}
  .appFooter>span:first-child{order:2;text-align:center!important}
  .developerSignature{order:1!important;width:100%!important;max-width:320px!important;margin:0 auto 2px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .developerSignature small{display:block!important;font-size:7px!important;color:#7991b1!important}.developerSignature strong{display:block!important;margin:1px 0;color:#cf3dff!important;font-size:12px!important}.developerSignature em{display:block!important;color:#a3b4cb!important;font-size:8px!important;font-style:normal!important}
  .cloudSync{order:3!important;text-align:center!important;color:#20e4bf!important;font-size:10px!important}
  .offline{right:10px!important;bottom:10px!important}

  /* Use the inline search button instead of the floating duplicate on phones. */
  .globalSearchButton{display:none!important}
}

@media (max-width:380px){
  .app{padding-left:10px!important;padding-right:10px!important}
  .brand>span:last-child{font-size:23px!important}
  .mobileInfinityMark{width:42px;height:37px;flex-basis:42px}
  .topActions .mfsDashboardLink{height:68px!important;font-size:10px!important}
  .topActions .mfsDashboardLink::before{font-size:21px}
  .mobileServiceQuickRow{gap:6px}
  .mobileQuickService{border-radius:9px;padding:4px 2px}.mobileQuickService img{width:27px;height:27px}.mobileQuickService span{font-size:7px}
}
/* Desktop label compatibility for the two existing links. */
.mobileNavLabel{display:none}
.desktopNavLabel{display:inline}

@media (max-width:700px){
  html{background:#020d1d!important}
  .brand,.topActions,.userArea.show{grid-column:1/-1!important}
  .brand{width:100%!important}
  .brand>span:last-child{width:auto!important;min-width:max-content!important;overflow:visible!important}
  #userEmail{padding-right:9px!important;border-right:1px solid #40577d!important}
  .onlineBadge{padding-right:9px!important;border-right:1px solid #40577d!important;border-radius:0!important}
  #logoutButton{border-radius:0!important}
  .desktopNavLabel{display:none!important}
  .mobileNavLabel{display:inline!important}
  .developerSignature em{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
}
