@media screen{
  #dashboardSubnav{
    display:none!important;
  }

  .control-hub-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
  }

  .control-hub-card,
  .monthly-card{
    border:1px solid color-mix(in srgb,var(--brand) 18%,#d8e4df);
    border-radius:18px;
    background:linear-gradient(145deg,#ffffff,#f6fbfa);
    box-shadow:inset 0 1px 0 #fff,0 18px 38px rgba(13,76,60,.10);
    padding:18px;
  }

  .control-hub-card{
    min-height:135px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:12px;
  }

  .control-hub-card > div{
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:8px;
  }

  .control-hub-card b,
  .monthly-card h3{
    display:block;
    color:var(--brand);
    font-size:18px;
    font-weight:900;
    line-height:1.45;
    margin:0;
    white-space:normal;
  }

  .control-hub-card small,
  .monthly-note{
    display:block;
    color:var(--muted);
    font-size:12px;
    line-height:1.7;
    font-weight:800;
    white-space:normal;
  }

  .monthly-layout{
    display:grid;
    gap:16px;
  }

  .monthly-controls{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:12px;
    align-items:end;
  }

  .monthly-controls .field{
    margin:0;
  }

  .monthly-controls input,
  .monthly-controls select{
    min-height:56px!important;
    border-radius:16px!important;
    border:1px solid color-mix(in srgb,var(--brand) 20%,#d8e4df)!important;
    background:linear-gradient(145deg,#fff,#f7fbfa)!important;
    box-shadow:inset 0 1px 0 #fff,0 12px 24px rgba(13,76,60,.08)!important;
    color:var(--brand)!important;
    font-size:17px!important;
    font-weight:900!important;
  }

  .monthly-controls select{
    padding-inline:18px!important;
    background:linear-gradient(145deg,#fff,#f7fbfa)!important;
    cursor:pointer;
  }

  .monthly-controls select.monthly-native-hidden{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  .monthly-lux-select{
    position:relative;
    width:100%;
  }

  .monthly-lux-button{
    width:100%;
    min-height:56px;
    border:1px solid color-mix(in srgb,var(--brand) 20%,#d8e4df);
    border-radius:16px;
    background:linear-gradient(145deg,#fff,#f7fbfa);
    box-shadow:inset 0 1px 0 #fff,0 12px 24px rgba(13,76,60,.08);
    color:var(--brand);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 16px;
    font-size:17px;
    font-weight:900;
    text-align:right;
  }

  .monthly-lux-button::before{
    content:"⌄";
    color:var(--brand);
    font-size:22px;
    line-height:1;
  }

  .monthly-lux-select.open .monthly-lux-button{
    border-color:color-mix(in srgb,var(--brand) 62%,#d8b653);
    box-shadow:inset 0 1px 0 #fff,0 0 0 4px color-mix(in srgb,var(--brand) 13%,transparent),0 15px 30px rgba(13,76,60,.11);
  }

  .monthly-lux-menu{
    position:absolute;
    z-index:50;
    inset-inline:0;
    top:calc(100% + 8px);
    max-height:320px;
    overflow:auto;
    border:1px solid color-mix(in srgb,var(--brand) 20%,#d8e4df);
    border-radius:18px;
    background:#fff;
    box-shadow:0 22px 46px rgba(13,76,60,.18);
    padding:8px;
    display:none;
  }

  .monthly-lux-select.open .monthly-lux-menu{
    display:block;
  }

  .monthly-lux-option{
    width:100%;
    border:0;
    border-radius:13px;
    background:transparent;
    color:var(--brand);
    cursor:pointer;
    padding:11px 12px;
    text-align:right;
    font-size:16px;
    font-weight:900;
    line-height:1.55;
  }

  .monthly-lux-option:hover,
  .monthly-lux-option.active{
    background:linear-gradient(145deg,var(--brand),color-mix(in srgb,var(--brand) 80%,white));
    color:#fff;
  }

  .monthly-controls select:focus,
  .monthly-controls input:focus{
    outline:none!important;
    border-color:color-mix(in srgb,var(--brand) 62%,#d8b653)!important;
    box-shadow:inset 0 1px 0 #fff,0 0 0 4px color-mix(in srgb,var(--brand) 13%,transparent),0 15px 30px rgba(13,76,60,.11)!important;
  }

  .monthly-controls input[type="file"]::file-selector-button{
    margin-inline-end:10px;
    border:1px solid color-mix(in srgb,var(--brand) 25%,#d8e4df);
    border-radius:12px;
    background:linear-gradient(145deg,#fffaf0,#fff);
    color:var(--brand);
    font-weight:900;
    padding:8px 12px;
    cursor:pointer;
  }

  .monthly-filter-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }

  .monthly-filter-row .btn.active{
    background:linear-gradient(145deg,var(--brand),color-mix(in srgb,var(--brand) 82%,white));
    color:#fff;
    border-color:color-mix(in srgb,var(--brand) 80%,#d8b653);
  }

  .monthly-summary{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
    gap:10px;
  }

  .monthly-summary article{
    border:1px solid #dbe8e4;
    border-radius:16px;
    background:linear-gradient(145deg,#fff,#f2f8f6);
    padding:14px;
    box-shadow:inset 0 1px 0 #fff,0 10px 22px rgba(13,76,60,.07);
  }

  .monthly-summary span{
    display:block;
    color:var(--muted);
    font-size:12px;
    font-weight:800;
  }

  .monthly-summary b{
    display:block;
    margin-top:5px;
    color:var(--brand);
    font-size:24px;
    font-weight:900;
  }

  .monthly-status{
    display:inline-flex;
    min-width:86px;
    justify-content:center;
    border-radius:999px;
    padding:6px 10px;
    font-size:12px;
    font-weight:900;
    border:1px solid transparent;
  }

  .monthly-status.paid{
    color:#08763c;
    background:#e9f8ef;
    border-color:#bce7cc;
  }

  .monthly-status.unpaid{
    color:#b42318;
    background:#fff1f1;
    border-color:#f1b7b7;
  }

  .monthly-status.pending{
    color:#a05a00;
    background:#fff7e6;
    border-color:#f1d59a;
  }

  .monthly-status.inactive{
    color:#667085;
    background:#f2f4f7;
    border-color:#d0d5dd;
  }

  .monthly-row-actions{
    display:flex;
    gap:7px;
    justify-content:center;
    flex-wrap:wrap;
  }

  .monthly-import-log,
  .monthly-months{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
  }

  .monthly-import-log article{
    flex:1 1 230px;
    border:1px solid #dbe8e4;
    border-radius:16px;
    background:linear-gradient(145deg,#fff,#f7fbfa);
    padding:13px;
    box-shadow:inset 0 1px 0 #fff,0 10px 22px rgba(13,76,60,.07);
  }

  .monthly-import-log b,
  .monthly-import-log span{
    display:block;
  }

  .monthly-import-log span{
    margin-top:5px;
    color:var(--muted);
    font-size:12px;
    font-weight:800;
  }

  .month-chip{
    border:1px solid color-mix(in srgb,var(--brand) 22%,#d8e4df);
    border-radius:999px;
    background:linear-gradient(145deg,#fff,#f7fbfa);
    color:var(--brand);
    cursor:pointer;
    font-weight:900;
    padding:9px 14px;
    box-shadow:inset 0 1px 0 #fff,0 10px 20px rgba(13,76,60,.07);
  }

  .month-chip.active{
    background:linear-gradient(145deg,var(--brand),color-mix(in srgb,var(--brand) 76%,white));
    color:#fff;
    border-color:color-mix(in srgb,var(--brand) 75%,#d8b653);
  }

  .monthly-association-board{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:12px;
  }

  .monthly-association-card{
    border:1px solid #dbe8e4;
    border-radius:18px;
    background:
      radial-gradient(circle at 14% 12%,rgba(255,255,255,.95),transparent 35%),
      linear-gradient(145deg,#fff,#f6fbfa);
    padding:14px;
    box-shadow:inset 0 1px 0 #fff,0 14px 28px rgba(13,76,60,.08);
  }

  .monthly-association-title{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
  }

  .monthly-association-card h4{
    margin:0;
    color:var(--brand);
    font-size:17px;
    line-height:1.5;
  }

  .monthly-association-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:7px;
    margin:10px 0;
  }

  .monthly-association-stats span{
    border-radius:12px;
    background:#eef7f4;
    color:var(--muted);
    padding:8px 6px;
    text-align:center;
    font-size:11px;
    font-weight:800;
  }

  .monthly-association-stats b{
    display:block;
    color:var(--brand);
    font-size:17px;
    margin-top:3px;
  }

  .monthly-association-card p{
    margin:8px 0 0;
    color:var(--muted);
    font-size:12px;
    font-weight:800;
    line-height:1.7;
  }

  .monthly-empty{
    border:1px dashed #cadbd6;
    border-radius:16px;
    padding:20px;
    text-align:center;
    color:var(--muted);
    font-weight:900;
    background:#fbfdfc;
  }

  .monthly-reminder-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:grid;
    place-items:center;
    padding:18px;
    background:rgba(5,32,27,.28);
    backdrop-filter:blur(4px);
  }

  .monthly-reminder-modal.hidden{
    display:none!important;
  }

  .monthly-reminder-box{
    width:min(460px,100%);
    border:1px solid color-mix(in srgb,var(--brand) 18%,#d8e4df);
    border-radius:22px;
    background:linear-gradient(145deg,#fff,#f7fbfa);
    box-shadow:inset 0 1px 0 #fff,0 28px 70px rgba(13,76,60,.22);
    padding:22px;
    text-align:right;
  }

  .monthly-reminder-box h3{
    margin:0;
    color:var(--brand);
    font-size:21px;
    font-weight:900;
  }

  .monthly-reminder-box p{
    margin:12px 0 18px;
    color:var(--muted);
    line-height:1.7;
    font-weight:800;
  }
}

@media screen and (max-width:700px){
  .control-hub-card,
  .monthly-card{
    padding:14px;
  }

  .monthly-filter-row,
  .monthly-row-actions{
    flex-direction:column;
  }

  .monthly-filter-row .btn,
  .monthly-row-actions .btn{
    width:100%;
  }

  #monthlyFeesView,
  #monthlyFeesView .panel-body,
  #monthlyFeesView .monthly-card,
  #monthlyFeesView .monthly-controls,
  #monthlyFeesView .feature-action-strip,
  #monthlyFeesView .monthly-summary,
  #monthlyFeesView .monthly-association-board,
  #monthlyFeesView .monthly-association-card,
  #monthlyFeesView .monthly-association-title,
  #monthlyFeesView .monthly-association-stats{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  #monthlyFeesView .monthly-controls,
  #monthlyFeesView .feature-action-strip,
  #monthlyFeesView .monthly-summary,
  #monthlyFeesView .monthly-association-board{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
  }

  #monthlyFeesView .monthly-association-stats{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  #monthlyFeesView .field,
  #monthlyFeesView .btn,
  #monthlyFeesView select,
  #monthlyFeesView input,
  #monthlyFeesView .monthly-lux-select,
  #monthlyFeesView .monthly-lux-button,
  #monthlyFeesView .feature-action-strip > *{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  #monthlyFeesView .monthly-lux-menu{
    right:0!important;
    left:0!important;
    width:100%!important;
    max-width:100%!important;
    transform:none!important;
  }
}
