/* V155: scoped customer mobile cards, actions, request history and dialog. */
.v155-mobiles{margin-top:24px;padding-top:20px;border-top:1px solid #d4e1ee;color:#173954}
.v155-mobiles-heading h2{font-size:1.35rem;margin:0 0 6px;font-weight:750}
.v155-mobiles-heading p{color:#526a80;margin:0 0 18px}
.v155-mobile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:15px}
.v155-mobile-card{background:#fff;border:1px solid #d2e0ec;border-radius:14px;padding:16px;min-height:172px;display:flex;flex-direction:column;gap:11px;box-shadow:0 2px 9px rgba(20,55,86,.035)}
.v155-mobile-top{display:flex;align-items:center;justify-content:space-between;min-height:35px;gap:8px}
.v155-network-logo{width:70px;height:34px;object-fit:contain;object-position:left center}
.v155-network-name{font-size:.9rem}
.v155-mobile-status{display:inline-flex;background:#e5f6e8;color:#195d30;padding:5px 9px;border-radius:999px;font-size:.77rem;font-weight:700;text-transform:capitalize}
.v155-mobile-number{font-size:1.2rem;letter-spacing:-.025em;overflow-wrap:anywhere}
.v155-mobile-plan{font-size:.92rem;color:#50677c;min-height:18px}
.v155-mobile-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.v155-mobile-actions button,.v155-modal-footer button,.v155-close{border-radius:9px;padding:9px 12px;font-size:.85rem;font-weight:700;cursor:pointer}
.v155-primary{background:#075d97;color:white;border:1px solid #075d97}
.v155-secondary,.v155-close{background:white;color:#075d97;border:1px solid #a9c4da}
.v155-mobile-actions button:focus-visible,.v155-modal-footer button:focus-visible,.v155-close:focus-visible{outline:3px solid #77b9f2;outline-offset:2px}
.v155-request-history{margin-top:24px}.v155-request-history h3{margin:0 0 12px;font-size:1.05rem}
.v155-request-list{border:1px solid #d2e0ec;border-radius:12px;overflow:hidden;background:#fff}
.v155-request-line{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 15px;border-bottom:1px solid #e5edf3}
.v155-request-line:last-child{border-bottom:0}.v155-request-line small{display:block;margin-top:5px;color:#50677c}
.v155-state{font-size:.8rem;white-space:nowrap;border-radius:100px;padding:5px 9px;font-weight:700;background:#e8f0fa;color:#244f83}
.v155-state-completed{background:#e6f4e6;color:#245a2c}.v155-state-declined{background:#eeeef0;color:#5f6267}
.v155-empty{color:#5d7287}.v155-feedback{padding:11px 13px;border:1px solid #a4d9c6;background:#effbf5;border-radius:8px;margin-bottom:16px}
.v155-error,.v155-form-error{color:#8e2230!important}.v155-request-dialog{border:1px solid #d5e3ef;border-radius:16px;max-width:min(550px,calc(100vw - 28px));width:100%;box-sizing:border-box;padding:0;color:#193950;box-shadow:0 18px 55px rgba(15,40,69,.24)}
.v155-request-dialog::backdrop{background:rgba(14,33,51,.56)}
.v155-request-form{display:flex;flex-direction:column;gap:16px;padding:22px}
.v155-modal-header{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}
.v155-modal-header h2{font-size:1.25rem;margin:0 0 4px}.v155-modal-header p{font-size:.9rem;color:#5b7082;margin:0}
.v155-request-form label{font-weight:650;display:flex;flex-direction:column;gap:7px;color:#243d55}
.v155-request-form select,.v155-request-form textarea{font:inherit;width:100%;box-sizing:border-box;border:1px solid #afc4d9;border-radius:8px;padding:10px;background:#fff;color:#173954}
.v155-request-caution{font-size:.86rem;line-height:1.55;color:#526a80;margin:0}
.v155-modal-footer{display:flex;gap:10px;justify-content:flex-end}
@media(max-width:520px){.v155-mobile-grid{grid-template-columns:1fr}.v155-request-line{align-items:flex-start;flex-direction:column}.v155-request-form{padding:16px}}

/* V156: customer-friendly, filtered mobile tariff picker. */
.v155-request-dialog.v156-tariff-dialog{width:min(780px,calc(100vw - 28px));max-width:780px;max-height:90dvh;overflow-y:auto}
.v156-tariff-picker{border:1px solid #d7e5f0;border-radius:12px;padding:15px;background:#f8fbfe;min-width:0}
.v156-tariff-picker[hidden]{display:none!important}
.v156-tariff-picker h3{font-size:1.06rem;margin:0 0 12px}
.v156-mode-title{font-weight:650;margin-bottom:8px}
.v156-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:11px}
.v155-request-form .v156-mode-choice{font-weight:400;display:flex;flex-direction:row;align-items:flex-start;gap:9px;cursor:pointer;padding:12px;background:#fff;border:1px solid #c6d7e8;border-radius:9px}
.v156-mode-choice input{margin-top:3px;accent-color:#065d98}
.v156-mode-choice span{display:grid;gap:5px}
.v156-mode-choice strong{font-size:.91rem}
.v156-mode-choice small{color:#557186;line-height:1.35;font-size:.78rem}
.v156-mode-choice:has(input:checked){border-color:#2374b1;background:#eef7fd}
.v156-mode-choice:has(input:disabled){opacity:.55;cursor:not-allowed}
.v156-catalogue-note{margin:4px 0 12px;font-size:.82rem;color:#536e83;line-height:1.45}
.v156-filters{display:flex;gap:12px;align-items:end;margin-bottom:12px}
.v156-filters label{flex:1;min-width:0;font-size:.86rem}
.v155-request-form .v156-filters input{width:100%;box-sizing:border-box;font:inherit;color:#173954;border:1px solid #afc4d9;border-radius:8px;background:#fff;padding:10px}
.v156-products{border:1px solid #d4e2ed;border-radius:10px;background:white;max-height:260px;overflow-y:auto;overscroll-behavior:contain}
.v155-request-form .v156-product-option{display:flex;flex-direction:row;align-items:center;gap:11px;padding:13px;cursor:pointer;border-bottom:1px solid #e7eef5;font-weight:400}
.v156-product-option:last-child{border-bottom:0}
.v156-product-option:hover{background:#f0f7fc}
.v156-product-option:has(input:checked){background:#e8f4fc}
.v156-product-option input{accent-color:#075d97;flex:0 0 auto}
.v156-product-info{display:grid;gap:4px;min-width:0;flex:1}
.v156-product-info strong{font-size:.92rem}
.v156-product-info small{color:#547088;font-size:.78rem}
.v156-product-info .v156-product-description{color:#74869a}
.v156-product-price{font-size:.82rem;color:#1c587f;font-weight:750;text-align:right;min-width:100px}
.v156-empty{padding:16px;margin:0;color:#657d90}
.v156-selection{padding:9px 11px;border-radius:8px;background:#e6f4eb;color:#1a593a;margin:12px 0 0;font-size:.83rem;font-weight:700}
.v156-request-proposed{display:block;font-size:.84rem;color:#406c92;margin-top:5px}
@media(max-width:540px){.v156-modes{grid-template-columns:1fr}.v156-filters{flex-direction:column;align-items:stretch}.v156-product-option{flex-wrap:wrap}.v156-product-price{min-width:0}}

/* V157: prevent app.css's broad "dialog input" rule from expanding radio buttons.
   Scoped only to the customer tariff-change dialog; no other forms are changed. */
.v155-request-dialog.v156-tariff-dialog .v156-mode-choice > input[type="radio"],
.v155-request-dialog.v156-tariff-dialog .v156-product-option > input[type="radio"] {
  -webkit-appearance: radio;
  appearance: auto;
  display: block;
  box-sizing: border-box;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  accent-color: #075d97;
}

/* Remove the global dialog label margins from this compact customer flow. */
.v155-request-dialog.v156-tariff-dialog .v155-request-form {
  gap: 12px;
  padding: 18px;
}
.v155-request-dialog.v156-tariff-dialog .v155-request-form label {
  margin-bottom: 0;
}
.v155-request-dialog.v156-tariff-dialog .v156-tariff-picker {
  padding: 13px;
}

/* Keep all tariff labels in their own columns rather than under a huge input. */
.v155-request-dialog.v156-tariff-dialog .v156-modes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}
.v155-request-dialog.v156-tariff-dialog .v156-mode-choice {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 78px;
  margin: 0;
  padding: 12px;
  overflow: hidden;
}
.v155-request-dialog.v156-tariff-dialog .v156-mode-choice > span {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.v155-request-dialog.v156-tariff-dialog .v156-mode-choice strong {
  font-size: .94rem;
  line-height: 1.35;
}
.v155-request-dialog.v156-tariff-dialog .v156-mode-choice small {
  font-size: .81rem;
  line-height: 1.4;
}

/* Compact catalogue rows, with independent wrapping for tariff text and price. */
.v155-request-dialog.v156-tariff-dialog .v156-product-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 65px;
  margin: 0;
  padding: 12px 14px;
}
.v155-request-dialog.v156-tariff-dialog .v156-product-info {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
.v155-request-dialog.v156-tariff-dialog .v156-product-price {
  flex: 0 1 145px;
  min-width: 100px;
  overflow-wrap: anywhere;
}
.v155-request-dialog.v156-tariff-dialog .v156-products {
  max-height: 280px;
}

/* Keep the dialog inside the viewport and its submit/cancel actions available. */
.v155-request-dialog.v156-tariff-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
}
.v155-request-dialog.v156-tariff-dialog .v155-modal-footer {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  padding: 12px 0 2px;
  background: #fff;
  border-top: 1px solid #e2eaf2;
}
@media (max-width: 600px) {
  .v155-request-dialog.v156-tariff-dialog .v156-modes { grid-template-columns: 1fr; }
  .v155-request-dialog.v156-tariff-dialog .v156-mode-choice { min-height: 0; }
  .v155-request-dialog.v156-tariff-dialog .v156-product-option { flex-wrap: wrap; }
  .v155-request-dialog.v156-tariff-dialog .v156-product-price {
    flex-basis: auto;
    margin-left: 30px;
    text-align: left;
  }
  .v155-request-dialog.v156-tariff-dialog .v155-modal-footer { bottom: -16px; }
}
