/* Isolated phone presentation for Payment Reminder. */
.payment-reminder-mobile-home {
  display: none;
}

.payment-reminder-mobile-wizard,
.payment-reminder-mobile-browser,
.payment-reminder-mobile-label-text {
  display: none;
}

@media (max-width: 680px) {
  #tab-payment-home {
    background: #f4f7fb;
  }

  #tab-payment-home .payment-home-sidebar,
  #tab-payment-home .payment-home-topbar,
  #tab-payment-home .payment-home-heading-row,
  #tab-payment-home .payment-home-stat-grid,
  #tab-payment-home .payment-home-content-grid {
    display: none !important;
  }

  #tab-payment-home .payment-home-dashboard,
  #tab-payment-home .payment-home-main,
  #tab-payment-home .payment-home-body {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  #tab-payment-home .payment-home-dashboard {
    display: block;
    min-height: calc(100dvh - 72px);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #tab-payment-home .payment-home-body {
    display: block;
    padding: 0 !important;
  }

  .payment-reminder-mobile-home {
    display: flex;
    flex-direction: column;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .payment-reminder-mobile-hero {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 15px;
    padding: 17px;
    border-radius: 19px;
    color: #fff;
    background: linear-gradient(145deg, #4338ca, #2563eb 62%, #0891b2);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  }

  .payment-reminder-mobile-hero > div {
    flex: 1;
    min-width: 0;
  }

  .payment-reminder-mobile-kicker {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .payment-reminder-mobile-hero h1,
  .payment-reminder-mobile-hero p {
    margin: 0;
  }

  .payment-reminder-mobile-hero h1 {
    color: #fff;
    font-size: 1.22rem;
    line-height: 1.2;
  }

  .payment-reminder-mobile-hero p {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .payment-reminder-mobile-hero-icon {
    display: grid;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.17);
    font-size: 1.35rem;
  }

  .payment-reminder-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 15px 15px;
  }

  .payment-reminder-mobile-actions > button {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 104px;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    color: #172033;
    text-align: left;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.05);
    -webkit-tap-highlight-color: transparent;
  }

  .payment-reminder-mobile-actions > button:active {
    transform: scale(0.985);
  }

  .payment-reminder-mobile-actions > button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
  }

  .payment-reminder-mobile-actions > button > i:first-child {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    font-size: 1.08rem;
  }

  .payment-reminder-mobile-actions > button > i:last-child {
    display: none;
  }

  .payment-reminder-mobile-actions > button > span {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .payment-reminder-mobile-actions strong {
    font-size: 0.83rem;
    line-height: 1.28;
  }

  .payment-reminder-mobile-actions strong b {
    color: inherit;
    font: inherit;
  }

  .payment-reminder-mobile-actions small {
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.32;
  }

  .payment-reminder-mobile-actions .is-create > i:first-child {
    color: #4f46e5;
    background: #eef2ff;
  }

  .payment-reminder-mobile-actions .is-all > i:first-child {
    color: #2563eb;
    background: #eaf2ff;
  }

  .payment-reminder-mobile-actions .is-pending > i:first-child {
    color: #d97706;
    background: #fff7df;
  }

  .payment-reminder-mobile-actions .is-links > i:first-child {
    color: #059669;
    background: #e7f9f1;
  }

  #tab-payment-reminders .payment-reminder-compose-card.payment-reminder-mobile-create-active {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #f4f7fb;
    box-shadow: none;
  }

  #tab-payment-reminders.payment-reminder-mobile-create-flow {
    padding: 0 !important;
    background: #f4f7fb;
  }

  body.payment-reminder-mobile-create-open > .dashboard-app-bottom-nav,
  body.payment-reminder-mobile-create-open > .preview-bottom-nav {
    display: none !important;
  }

  body.payment-reminder-mobile-detail-open > .dashboard-app-bottom-nav,
  body.payment-reminder-mobile-detail-open > .preview-bottom-nav {
    display: none !important;
  }

  #tab-payment-reminders .payment-reminder-compose-card.payment-reminder-mobile-create-active > .panel-heading,
  #tab-payment-reminders .payment-reminder-mobile-create-active .payment-reminder-smart-strip,
  #tab-payment-reminders .payment-reminder-mobile-create-active > #paymentReminderCreatePanel > .payment-reminder-form > .payment-reminder-form-grid,
  #tab-payment-reminders .payment-reminder-mobile-create-active > #paymentReminderCreatePanel > .payment-reminder-form > .payment-reminder-form-footer,
  #tab-payment-reminders .payment-reminder-mobile-create-active #paymentReminderImportInput {
    display: none !important;
  }

  #tab-payment-reminders .payment-reminder-mobile-create-active #paymentReminderCreatePanel,
  #tab-payment-reminders .payment-reminder-mobile-create-active .payment-reminder-form {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  #tab-payment-reminders .payment-reminder-mobile-create-active .payment-reminder-form {
    display: block;
    padding: 0;
  }

  .payment-reminder-mobile-wizard {
    display: block;
    min-height: calc(100dvh - 72px);
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    color: #101a3d;
    background: #f4f7fb;
  }

  .payment-reminder-mobile-wizard [hidden] {
    display: none !important;
  }

  .payment-reminder-mobile-appbar {
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 10px 12px;
    border-bottom: 1px solid #e4eafa;
    background: rgba(255, 255, 255, 0.98);
  }

  .payment-reminder-mobile-appbar > strong {
    overflow: hidden;
    color: #101936;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .payment-reminder-mobile-appbar > button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: #152650;
    background: transparent;
    font-size: 1.16rem;
  }

  .payment-reminder-mobile-appbar > button:active {
    background: #edf3ff;
  }

  .payment-reminder-mobile-menu {
    position: absolute;
    top: 54px;
    right: 12px;
    z-index: 20;
    min-width: 170px;
    padding: 6px;
    border: 1px solid #dce5f5;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  }

  .payment-reminder-mobile-menu button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    color: #26375f;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
  }

  .payment-reminder-mobile-progress {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 14px 9px 13px;
    border-bottom: 1px solid #e4eafa;
    background: #fff;
  }

  .payment-reminder-mobile-progress::before {
    position: absolute;
    top: 31px;
    right: 18%;
    left: 18%;
    z-index: -1;
    height: 2px;
    background: #d6deed;
    content: "";
  }

  .payment-reminder-mobile-progress button {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 3px;
    border: 0;
    color: #5b6888;
    background: transparent;
  }

  .payment-reminder-mobile-progress button > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 2px solid #d5ddeb;
    border-radius: 50%;
    color: #43516e;
    background: #f1f4f9;
    font-size: 0.92rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-progress button > small {
    max-width: 98px;
    color: inherit;
    font-size: 0.63rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }

  .payment-reminder-mobile-progress button.is-active,
  .payment-reminder-mobile-progress button.is-complete {
    color: #1557ea;
  }

  .payment-reminder-mobile-progress button.is-active > span,
  .payment-reminder-mobile-progress button.is-complete > span {
    border-color: #2367f2;
    color: #fff;
    background: #2367f2;
    box-shadow: 0 5px 13px rgba(37, 99, 235, 0.2);
  }

  .payment-reminder-mobile-step {
    display: grid;
    gap: 12px;
    padding: 11px 10px 8px;
  }

  .payment-reminder-mobile-card {
    overflow: visible;
    padding: 13px;
    border: 1px solid #dae4f4;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(30, 50, 95, 0.05);
  }

  .payment-reminder-mobile-card > header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .payment-reminder-mobile-card > header > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #315cf4;
    background: #eef2ff;
    font-size: 1.1rem;
  }

  .payment-reminder-mobile-card > header h3,
  .payment-reminder-mobile-card > header p {
    margin: 0;
  }

  .payment-reminder-mobile-card > header h3 {
    color: #111c40;
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .payment-reminder-mobile-card > header p {
    margin-top: 2px;
    color: #62708f;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .payment-reminder-mobile-fields {
    display: grid;
    gap: 12px;
  }

  .payment-reminder-mobile-fields.is-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-reminder-mobile-fields > label {
    position: relative;
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #18254c;
    font-size: 0;
    font-weight: 800;
  }

  .payment-reminder-mobile-label-text {
    display: block;
    color: #18254c;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.3;
  }

  .payment-reminder-mobile-fields > label > .field-label-line {
    display: none;
  }

  .payment-reminder-mobile-label-text em {
    color: #dc2626;
    font-style: normal;
  }

  .payment-reminder-mobile-fields .field-control {
    width: 100%;
    min-width: 0;
  }

  .payment-reminder-mobile-fields input,
  .payment-reminder-mobile-fields select,
  .payment-reminder-mobile-fields textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid #d4deee;
    border-radius: 11px;
    color: #172244;
    background: #fff;
    font-size: 0.82rem;
    box-shadow: none;
  }

  .payment-reminder-mobile-fields .field-control > input,
  .payment-reminder-mobile-fields .field-control > select,
  .payment-reminder-mobile-fields .field-control > textarea {
    padding-left: 45px;
  }

  .payment-reminder-mobile-fields .field-control .field-icon {
    left: 8px;
    width: 29px;
    height: 29px;
    border: 0;
    border-radius: 9px;
    color: #5138ed;
    background: #f0edff;
  }

  .payment-reminder-mobile-fields textarea {
    min-height: 96px;
    resize: vertical;
  }

  .payment-reminder-mobile-fields input:focus,
  .payment-reminder-mobile-fields select:focus,
  .payment-reminder-mobile-fields textarea:focus {
    border-color: #5f56f5;
    outline: 3px solid rgba(95, 86, 245, 0.12);
  }

  .payment-reminder-mobile-fields .payment-reminder-customer-help-row {
    display: block;
    color: #647493;
    font-size: 0.67rem;
    font-weight: 500;
    line-height: 1.35;
  }

  .payment-reminder-mobile-fields .payment-reminder-customer-badges {
    display: none;
  }

  .payment-reminder-mobile-fields .payment-reminder-customer-results {
    top: calc(100% - 23px);
    z-index: 30;
  }

  .payment-reminder-mobile-balance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
    padding: 11px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f4f7ff, #eef2ff);
  }

  .payment-reminder-mobile-balance div {
    display: grid;
    gap: 3px;
  }

  .payment-reminder-mobile-balance div:last-child {
    text-align: right;
  }

  .payment-reminder-mobile-balance dt {
    color: #61708f;
    font-size: 0.65rem;
    font-weight: 700;
  }

  .payment-reminder-mobile-balance dd {
    margin: 0;
    color: #23345c;
    font-size: 0.88rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-balance div:last-child dd {
    color: #153fe5;
    font-size: 1.05rem;
  }

  .payment-reminder-mobile-date-hint {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0 0;
    padding: 10px 11px;
    border-radius: 11px;
    color: #2458ba;
    background: #eaf4ff;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .payment-reminder-mobile-date-hint i {
    font-size: 1rem;
  }

  .payment-reminder-mobile-review > dl {
    margin: 0;
    border-top: 1px solid #e5eaf3;
  }

  .payment-reminder-mobile-review > dl > div {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 10px;
    align-items: center;
    min-height: 38px;
    padding: 7px 2px;
    border-bottom: 1px solid #e9edf5;
  }

  .payment-reminder-mobile-review dt,
  .payment-reminder-mobile-review dd {
    min-width: 0;
    margin: 0;
    font-size: 0.72rem;
  }

  .payment-reminder-mobile-review dt {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #60708f;
  }

  .payment-reminder-mobile-review dt i {
    width: 16px;
    color: #315cf4;
    text-align: center;
  }

  .payment-reminder-mobile-review dd {
    overflow-wrap: anywhere;
    color: #152148;
    font-weight: 800;
    text-align: right;
  }

  .payment-reminder-mobile-review .is-balance {
    margin: 0 -4px;
    padding-inline: 6px;
    border: 0;
    border-radius: 8px;
    background: #edf2ff;
  }

  .payment-reminder-mobile-review .is-balance dd {
    color: #153fe5;
    font-size: 0.88rem;
  }

  .payment-reminder-mobile-footer {
    position: sticky;
    bottom: calc(68px + env(safe-area-inset-bottom));
    z-index: 11;
    display: grid;
    grid-template-columns: minmax(104px, 0.72fr) minmax(0, 1.28fr);
    gap: 9px;
    padding: 10px;
    border-top: 1px solid #e0e6f1;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 25px rgba(20, 35, 80, 0.07);
    backdrop-filter: blur(10px);
  }

  .payment-reminder-mobile-footer button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 13px;
    border: 0;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-footer .is-back {
    color: #26375b;
    background: #edf0f5;
  }

  .payment-reminder-mobile-footer .is-primary {
    color: #fff;
    background: linear-gradient(135deg, #315cf4, #5b2be8);
    box-shadow: 0 9px 19px rgba(74, 55, 235, 0.22);
  }

  .payment-reminder-mobile-wizard[data-payment-reminder-step="1"] .payment-reminder-mobile-footer {
    grid-template-columns: 1fr;
  }

  .payment-reminder-mobile-wizard[data-payment-reminder-step="3"] .payment-reminder-mobile-footer {
    position: static;
    margin-top: 10px;
    box-shadow: none;
  }

  #tab-payment-reminders.payment-reminder-mobile-list-flow {
    padding: 0 !important;
    background: #f4f7fb;
  }

  #tab-payment-reminders .payment-reminder-compose-card.payment-reminder-mobile-list-active {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #tab-payment-reminders .payment-reminder-mobile-list-active > .panel-heading,
  #tab-payment-reminders .payment-reminder-mobile-list-active > #paymentReminderViewPanel > :not(.payment-reminder-mobile-browser) {
    display: none !important;
  }

  #tab-payment-reminders .payment-reminder-mobile-list-active > #paymentReminderViewPanel {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .payment-reminder-mobile-browser {
    display: block;
    min-height: calc(100dvh - 70px);
    color: #101a3d;
    background: #f4f7fb;
  }

  .payment-reminder-mobile-browser [hidden] {
    display: none !important;
  }

  .payment-reminder-mobile-list-screen {
    padding: 14px 12px calc(88px + env(safe-area-inset-bottom));
  }

  .payment-reminder-mobile-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .payment-reminder-mobile-list-heading h1,
  .payment-reminder-mobile-list-heading p {
    margin: 0;
  }

  .payment-reminder-mobile-list-heading h1 {
    color: #111a3a;
    font-size: 1.16rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .payment-reminder-mobile-list-heading p {
    margin-top: 3px;
    color: #60708f;
    font-size: 0.72rem;
  }

  .payment-reminder-mobile-list-heading nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
  }

  .payment-reminder-mobile-list-heading button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #315cf4, #6530ed);
    box-shadow: 0 8px 18px rgba(61, 63, 230, 0.22);
    font-size: 0.7rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-list-heading .is-tools {
    width: 44px;
    padding: 0;
    color: #234474;
    background: #fff;
    box-shadow: none;
  }

  .payment-reminder-mobile-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 13px;
  }

  .payment-reminder-mobile-summary article {
    display: flex;
    min-width: 0;
    min-height: 72px;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid #e1e7f3;
    border-radius: 13px;
    background: #fff;
  }

  .payment-reminder-mobile-summary article > i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    color: #5c3de8;
    background: #eee9ff;
    font-size: 1rem;
  }

  .payment-reminder-mobile-summary article > span {
    min-width: 0;
    color: #52617f;
    font-size: 0.67rem;
  }

  .payment-reminder-mobile-summary strong {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #121e49;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .payment-reminder-mobile-summary .is-overdue {
    background: #fff4f5;
  }

  .payment-reminder-mobile-summary .is-overdue > i,
  .payment-reminder-mobile-summary .is-overdue strong {
    color: #df263b;
  }

  .payment-reminder-mobile-summary .is-overdue > i {
    background: #ffe1e5;
  }

  .payment-reminder-mobile-summary .is-week {
    background: #eef6ff;
  }

  .payment-reminder-mobile-summary .is-week > i {
    color: #1767db;
    background: #dcecff;
  }

  .payment-reminder-mobile-summary .is-upcoming {
    background: #effbf5;
  }

  .payment-reminder-mobile-summary .is-upcoming > i {
    color: #16955b;
    background: #d8f5e6;
  }

  .payment-reminder-mobile-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    margin-bottom: 10px;
  }

  .payment-reminder-mobile-search-row label {
    position: relative;
    display: block;
  }

  .payment-reminder-mobile-search-row label > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    color: #58709d;
    transform: translateY(-50%);
  }

  .payment-reminder-mobile-search-row input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px 10px 42px;
    border: 1px solid #dce4f2;
    border-radius: 12px;
    color: #152148;
    background: #fff;
    outline: 0;
    font-size: 0.76rem;
  }

  .payment-reminder-mobile-search-row > button {
    position: relative;
    display: grid;
    min-height: 46px;
    place-items: center;
    padding: 0;
    border: 1px solid #dce4f2;
    border-radius: 12px;
    color: #2357d9;
    background: #fff;
    font-size: 1.05rem;
  }

  .payment-reminder-mobile-filter-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ef3150;
    font-size: 0.58rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 0 -12px 12px;
    padding: 0 12px 3px;
    scrollbar-width: none;
  }

  .payment-reminder-mobile-chips::-webkit-scrollbar {
    display: none;
  }

  .payment-reminder-mobile-chips button {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #dfe6f3;
    border-radius: 999px;
    color: #2d4778;
    background: #fff;
    font-size: 0.7rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-chips button.is-active {
    border-color: #2755eb;
    color: #fff;
    background: #2755eb;
    box-shadow: 0 6px 14px rgba(39, 85, 235, 0.2);
  }

  .payment-reminder-mobile-chips button span {
    opacity: 0.8;
  }

  .payment-reminder-mobile-records {
    display: grid;
    gap: 9px;
  }

  .payment-reminder-mobile-record {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 40px;
    gap: 10px;
    padding: 12px 10px;
    border: 1px solid #e0e7f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(28, 49, 93, 0.04);
  }

  .payment-reminder-mobile-record.is-selection {
    grid-template-columns: 28px 44px minmax(0, 1fr) 40px;
  }

  .payment-reminder-mobile-record.is-selected {
    border-color: #7ea0ff;
    background: #f7f9ff;
  }

  .payment-reminder-mobile-select {
    display: grid;
    width: 28px;
    min-height: 44px;
    place-items: center;
  }

  .payment-reminder-mobile-select input {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: #315cf4;
  }

  .payment-reminder-mobile-bulk-controls {
    display: grid;
    gap: 10px;
    margin-bottom: 11px;
    padding: 11px;
    border: 1px solid #cfdcff;
    border-radius: 13px;
    background: #f4f7ff;
  }

  .payment-reminder-mobile-bulk-controls > header,
  .payment-reminder-mobile-bulk-controls > header span,
  .payment-reminder-mobile-bulk-controls > div {
    display: flex;
    align-items: center;
  }

  .payment-reminder-mobile-bulk-controls > header,
  .payment-reminder-mobile-bulk-controls > div {
    justify-content: space-between;
    gap: 8px;
  }

  .payment-reminder-mobile-bulk-controls > header span {
    gap: 4px;
  }

  .payment-reminder-mobile-bulk-controls button {
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    color: #2455d1;
    background: #fff;
    font-size: 0.66rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-bulk-controls > div > button {
    min-height: 44px;
    color: #fff;
    background: #315cf4;
  }

  .payment-reminder-mobile-bulk-controls button:disabled {
    opacity: 0.45;
  }

  .payment-reminder-mobile-bulk-controls label {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 4px;
  }

  .payment-reminder-mobile-bulk-controls label span {
    color: #5a6b8d;
    font-size: 0.62rem;
  }

  .payment-reminder-mobile-bulk-controls select {
    width: 100%;
    min-height: 44px;
    padding: 8px 9px;
    border: 1px solid #d7e0f1;
    border-radius: 9px;
    color: #17264f;
    background: #fff;
  }

  .payment-reminder-mobile-record:focus-visible {
    outline: 3px solid rgba(49, 92, 244, 0.2);
  }

  .payment-reminder-mobile-record-avatar,
  .payment-reminder-mobile-detail-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #4d36dd;
    background: #eeeaff;
    font-weight: 900;
  }

  .payment-reminder-mobile-record.is-overdue .payment-reminder-mobile-record-avatar {
    color: #c81e35;
    background: #ffe3e7;
  }

  .payment-reminder-mobile-record.is-upcoming .payment-reminder-mobile-record-avatar,
  .payment-reminder-mobile-record.is-paid .payment-reminder-mobile-record-avatar {
    color: #0f8050;
    background: #dff6ea;
  }

  .payment-reminder-mobile-record-body {
    min-width: 0;
  }

  .payment-reminder-mobile-record-body header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
  }

  .payment-reminder-mobile-record-body header > strong {
    overflow: hidden;
    color: #111c40;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .payment-reminder-mobile-stage {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    color: #2459cc;
    background: #e7efff;
    font-size: 0.58rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-record.is-overdue .payment-reminder-mobile-stage,
  .payment-reminder-mobile-stage.is-overdue {
    color: #d9243b;
    background: #ffe2e6;
  }

  .payment-reminder-mobile-record.is-upcoming .payment-reminder-mobile-stage,
  .payment-reminder-mobile-stage.is-upcoming,
  .payment-reminder-mobile-stage.is-paid {
    color: #11804e;
    background: #dff7e9;
  }

  .payment-reminder-mobile-record-body p {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin: 3px 0 0;
    color: #52678f;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .payment-reminder-mobile-record-body p > i {
    width: 14px;
    flex: 0 0 14px;
    color: #315cf4;
    text-align: center;
  }

  .payment-reminder-mobile-record-body .payment-reminder-mobile-amount strong {
    color: #14214b;
    font-size: 0.78rem;
  }

  .payment-reminder-mobile-record-body .payment-reminder-mobile-due b {
    color: #263b69;
  }

  .payment-reminder-mobile-record.is-overdue .payment-reminder-mobile-due b,
  .payment-reminder-mobile-record.is-overdue .payment-reminder-mobile-due span {
    color: #e0223c;
  }

  .payment-reminder-mobile-reference::before {
    margin: 0 6px;
    content: "|";
    color: #a6b0c2;
  }

  .payment-reminder-mobile-record-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .payment-reminder-mobile-record-tools button,
  .payment-reminder-mobile-record-tools a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #2258dc;
    background: #eaf2ff;
    text-decoration: none;
  }

  .payment-reminder-mobile-record-tools button {
    height: 28px;
    background: transparent;
  }

  .payment-reminder-mobile-load-state {
    display: grid;
    min-height: 54px;
    place-items: center;
    gap: 7px;
    color: #5b6f96;
    font-size: 0.72rem;
  }

  .payment-reminder-mobile-load-state button {
    min-height: 44px;
    padding: 9px 16px;
    border: 0;
    color: #2355d8;
    background: transparent;
    font-weight: 800;
  }

  .payment-reminder-mobile-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    padding: 28px;
    text-align: center;
  }

  .payment-reminder-mobile-empty > i {
    color: #a8bce5;
    font-size: 3rem;
  }

  .payment-reminder-mobile-empty strong {
    margin-top: 12px;
    font-size: 1rem;
  }

  .payment-reminder-mobile-empty p {
    margin: 7px 0 14px;
    color: #697a9a;
    font-size: 0.76rem;
  }

  .payment-reminder-mobile-empty button {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: #315cf4;
    font-weight: 800;
  }

  .payment-reminder-mobile-sheet-layer {
    position: fixed;
    z-index: 90;
    inset: 0;
  }

  .payment-reminder-mobile-sheet-backdrop {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(8, 18, 43, 0.52);
  }

  .payment-reminder-mobile-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    max-height: min(82dvh, 680px);
    overflow-y: auto;
    padding: 8px 14px calc(14px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -20px 40px rgba(13, 30, 69, 0.2);
  }

  .payment-reminder-mobile-sheet > header {
    position: sticky;
    top: -8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding-top: 8px;
    background: #fff;
  }

  .payment-reminder-mobile-sheet > header span {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: #bac4d5;
    transform: translateX(-50%);
  }

  .payment-reminder-mobile-sheet h2 {
    margin: 0;
    font-size: 1rem;
  }

  .payment-reminder-mobile-sheet > header > button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #25406e;
    background: transparent;
  }

  .payment-reminder-mobile-filter-fields {
    display: grid;
    gap: 12px;
  }

  .payment-reminder-mobile-filter-fields label {
    display: grid;
    gap: 7px;
  }

  .payment-reminder-mobile-filter-fields label > span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #31466f;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-filter-fields select {
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid #dce4f2;
    border-radius: 11px;
    color: #17234a;
    background: #fff;
  }

  .payment-reminder-mobile-sheet > footer {
    position: sticky;
    bottom: -14px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 9px;
    margin: 14px -2px 0;
    padding: 10px 2px 14px;
    background: #fff;
  }

  .payment-reminder-mobile-sheet > footer button {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    font-weight: 800;
  }

  .payment-reminder-mobile-sheet > footer .is-reset {
    color: #304469;
    background: #edf1f7;
  }

  .payment-reminder-mobile-sheet > footer .is-apply {
    color: #fff;
    background: #315cf4;
  }

  .payment-reminder-mobile-action-list {
    display: grid;
  }

  .payment-reminder-mobile-action-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 4px 13px;
    border-bottom: 1px solid #e5eaf3;
  }

  .payment-reminder-mobile-action-person span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #2459cc;
    background: #e7efff;
    font-size: 0.62rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-action-list > button {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 62px;
    padding: 9px 5px;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    color: #1c2c55;
    background: transparent;
    text-align: left;
  }

  .payment-reminder-mobile-action-list > button > i {
    color: #315cf4;
    font-size: 1.1rem;
    text-align: center;
  }

  .payment-reminder-mobile-action-list > button span,
  .payment-reminder-mobile-action-list > button strong,
  .payment-reminder-mobile-action-list > button small {
    display: block;
  }

  .payment-reminder-mobile-action-list > button small {
    margin-top: 2px;
    color: #73809a;
    font-size: 0.65rem;
  }

  .payment-reminder-mobile-action-list > button.is-danger,
  .payment-reminder-mobile-action-list > button.is-danger > i {
    color: #e1263e;
  }

  .payment-reminder-mobile-action-list > button:disabled {
    opacity: 0.45;
  }

  body.payment-reminder-mobile-sheet-open {
    overflow: hidden;
  }

  .payment-reminder-mobile-detail-screen {
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
    background: #f4f7fb;
  }

  .payment-reminder-mobile-detail-appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 62px;
    padding: 8px 10px;
    border-bottom: 1px solid #e1e7f2;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
  }

  .payment-reminder-mobile-detail-appbar strong {
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .payment-reminder-mobile-detail-appbar button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #172a55;
    background: transparent;
    font-size: 1rem;
  }

  .payment-reminder-mobile-detail-content {
    display: grid;
    gap: 11px;
    padding: 12px;
  }

  .payment-reminder-mobile-customer-card,
  .payment-reminder-mobile-detail-card {
    border: 1px solid #e0e7f2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(29, 47, 88, 0.04);
  }

  .payment-reminder-mobile-customer-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .payment-reminder-mobile-detail-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }

  .payment-reminder-mobile-customer-card h1 {
    margin: 1px 72px 6px 0;
    font-size: 1rem;
  }

  .payment-reminder-mobile-customer-card p {
    display: flex;
    gap: 8px;
    margin: 4px 0;
    color: #56698f;
    font-size: 0.72rem;
  }

  .payment-reminder-mobile-customer-card p i {
    width: 15px;
    color: #315cf4;
    text-align: center;
  }

  .payment-reminder-mobile-customer-card > .payment-reminder-mobile-stage {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .payment-reminder-mobile-customer-card nav {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 3px;
  }

  .payment-reminder-mobile-customer-card nav a,
  .payment-reminder-mobile-customer-card nav button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #145ce8;
    background: #e8f1ff;
    text-decoration: none;
  }

  .payment-reminder-mobile-customer-card nav button:nth-last-child(2) {
    color: #118c55;
    background: #e2f8ec;
  }

  .payment-reminder-mobile-detail-card {
    padding: 12px;
  }

  .payment-reminder-mobile-detail-card > header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-bottom: 7px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6ebf4;
  }

  .payment-reminder-mobile-detail-card > header > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #315cf4;
    background: #edf2ff;
  }

  .payment-reminder-mobile-detail-card > header h2 {
    margin: 0;
    font-size: 0.92rem;
  }

  .payment-reminder-mobile-detail-card > header button {
    min-height: 38px;
    padding: 7px 9px;
    border: 0;
    border-radius: 10px;
    color: #1f57dc;
    background: #edf3ff;
    font-size: 0.68rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-detail-amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .payment-reminder-mobile-detail-amounts > div {
    min-width: 0;
    padding: 10px 7px;
    border-radius: 10px;
    background: #f7f9fc;
  }

  .payment-reminder-mobile-detail-amounts span,
  .payment-reminder-mobile-detail-amounts strong {
    display: block;
  }

  .payment-reminder-mobile-detail-amounts span {
    color: #53658a;
    font-size: 0.6rem;
  }

  .payment-reminder-mobile-detail-amounts strong {
    overflow-wrap: anywhere;
    margin-top: 6px;
    color: #14214b;
    font-size: 0.78rem;
  }

  .payment-reminder-mobile-detail-amounts .is-balance {
    background: #fff0f2;
  }

  .payment-reminder-mobile-detail-amounts .is-balance strong {
    color: #df233b;
    font-size: 0.88rem;
  }

  .payment-reminder-mobile-detail-card dl {
    margin: 0;
  }

  .payment-reminder-mobile-detail-card dl > div {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 10px;
    align-items: start;
    min-height: 42px;
    padding: 9px 2px;
    border-bottom: 1px solid #edf0f5;
  }

  .payment-reminder-mobile-detail-card dl > div:last-child {
    border-bottom: 0;
  }

  .payment-reminder-mobile-detail-card dt,
  .payment-reminder-mobile-detail-card dd {
    margin: 0;
    font-size: 0.7rem;
    overflow-wrap: anywhere;
  }

  .payment-reminder-mobile-detail-card dt {
    display: flex;
    gap: 7px;
    color: #5e7094;
  }

  .payment-reminder-mobile-detail-card dt i {
    color: #315cf4;
  }

  .payment-reminder-mobile-detail-card dd {
    color: #152148;
    font-weight: 800;
  }

  .payment-reminder-mobile-detail-card dd small {
    display: block;
    margin-top: 3px;
    color: #e0253d;
  }

  .payment-reminder-mobile-history article {
    position: relative;
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 9px;
    padding: 8px 2px;
  }

  .payment-reminder-mobile-history article > span {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #315cf4;
    box-shadow: 0 0 0 1px #315cf4;
  }

  .payment-reminder-mobile-history article div {
    display: grid;
    gap: 2px;
  }

  .payment-reminder-mobile-history time,
  .payment-reminder-mobile-history small {
    color: #6d7b98;
    font-size: 0.62rem;
  }

  .payment-reminder-mobile-history strong {
    font-size: 0.72rem;
  }

  .payment-reminder-mobile-detail-actions {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid #dfe6f1;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 24px rgba(18, 36, 78, 0.08);
  }

  .payment-reminder-mobile-detail-actions button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    border: 0;
    border-radius: 11px;
    color: #1d55d6;
    background: #eaf2ff;
    font-size: 0.65rem;
    font-weight: 800;
  }

  .payment-reminder-mobile-detail-actions button:nth-child(2) {
    color: #0d7d48;
    background: #def7e9;
  }

  .payment-reminder-mobile-detail-actions button:nth-child(3) {
    color: #5b30d7;
    background: #eee8ff;
  }

  .payment-reminder-mobile-detail-actions button:disabled {
    opacity: 0.42;
  }
}

@media (max-width: 380px) {
  .payment-reminder-mobile-actions {
    grid-template-columns: 1fr;
  }

  .payment-reminder-mobile-actions > button {
    min-height: 82px;
  }

  .payment-reminder-mobile-fields.is-amount-grid {
    grid-template-columns: 1fr;
  }
}
