/* NextSure v79 dashboard and billing visual system */
:root{--ns79-navy:#08233f;--ns79-blue:#175cd3;--ns79-teal:#0f8f79;--ns79-mint:#eafaf5;--ns79-bg:#f3f7fb;--ns79-line:#dce6ef;--ns79-text:#10243e;--ns79-muted:#64748b;--ns79-rose:#c63f5c}
.ns-dashboard-page{background:linear-gradient(145deg,#f7fafc 0%,#eef5fa 48%,#edf9f6 100%)!important;color:var(--ns79-text)!important}
.desktop-side{width:292px!important;background:linear-gradient(180deg,#061b31 0%,#0b3153 52%,#0a5d57 100%)!important;border-right:1px solid rgba(255,255,255,.08);box-shadow:18px 0 44px rgba(8,35,63,.14)}
.ns-sidebar-nav{padding-bottom:18px}.ns-sidebar-nav .sidebar-btn{display:flex!important;align-items:center;gap:11px;min-height:44px;padding:10px 12px!important;border:1px solid transparent;border-radius:13px!important;color:#eef7ff;font-size:14px;font-weight:850;transition:background .18s,border-color .18s,transform .18s}.ns-sidebar-nav .sidebar-btn:hover{background:rgba(255,255,255,.11)!important;border-color:rgba(255,255,255,.09);transform:translateX(2px)}.ns-sidebar-nav .ns-nav-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.1);font-size:14px;flex:none}.ns-sidebar-nav .ns-nav-arrow{margin-left:auto}.ns-sidebar-nav .sidebar-sub{margin:4px 0 8px 13px!important;padding:4px 0 4px 12px!important;border-left:1px solid rgba(151,225,211,.28)!important}.ns-sidebar-nav .sidebar-sub .sidebar-btn{min-height:37px;font-size:12px!important;color:#d7e9f4;padding:7px 9px!important}.ns-nav-signout{margin-top:12px!important;background:rgba(255,255,255,.07)!important}
.ns-dashboard-hero{background:linear-gradient(120deg,#08233f 0%,#0b4e6f 58%,#0f8f79 100%)!important;border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 38px rgba(8,35,63,.18)!important}.ns-dashboard-hero:after{display:none!important}.ns-metric-card{border-color:#dbe7ef!important;box-shadow:0 12px 30px rgba(31,65,96,.07)!important}.ns-metric-due{color:#bf6c26!important}.ns-metric-due .ns-metric-icon{background:#fff6e9!important;color:#b96019!important}.ns-metric-due b{color:#a95017!important}
.orders-table-wrap{border-radius:0 0 18px 18px}.orders-table-wrap table{min-width:2550px!important}.orders-table-wrap thead th{background:#eff5fa!important;color:#183555!important;font-size:13px;text-transform:none;letter-spacing:.01em;border-bottom:1px solid #d6e2ec}.orders-table-wrap tbody td{font-size:13px}.orders-table-wrap tbody tr{transition:filter .15s}.orders-table-wrap tbody tr:hover{filter:brightness(.985)}
.ns-bills-head{background:linear-gradient(135deg,#fff 0%,#f1f8ff 54%,#ecfbf7 100%)!important;border-color:#d5e4ed!important}.ns-bill-register-tabs{display:flex;flex-wrap:wrap;gap:8px}.ns-bill-register-tabs button{border:1px solid #cddde8;background:#fff;color:#39536c;border-radius:999px;padding:9px 15px;font-size:13px;font-weight:900;cursor:pointer}.ns-bill-register-tabs button.active{background:var(--ns79-navy);border-color:var(--ns79-navy);color:#fff;box-shadow:0 8px 18px rgba(8,35,63,.18)}
.ns-bill-type-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;text-transform:capitalize;font-size:11px;font-weight:950;letter-spacing:.03em;background:#eef2f7;color:#41566e}.ns-bill-type-pill.agency{background:#e8f0ff;color:#174ea6}.ns-bill-type-pill.agent{background:#ecfdf5;color:#08775e}.ns-bill-type-pill.branch{background:#fff6e6;color:#9b5a0b}.ns-bill-type-pill.customer{background:#f3eefe;color:#6842a6}.ns-bill-actions{display:flex;gap:6px}.ns-bill-actions a{display:inline-flex;padding:7px 10px;border-radius:9px;background:#102b49;color:#fff;font-size:12px;font-weight:900}.ns-bill-actions a.download{background:#0f8f79}
.ns-v79-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 22px;border-radius:22px;background:linear-gradient(125deg,#08233f,#0d5370 62%,#0f8f79);color:#fff;box-shadow:0 15px 34px rgba(8,35,63,.16)}.ns-v79-page-head span{display:block;color:#a9f3df;font-size:11px;font-weight:950;letter-spacing:.16em}.ns-v79-page-head h2{font-size:29px;line-height:1.1;font-weight:950}.ns-v79-page-head p{margin-top:5px;color:#d6eaf3;font-size:14px}.ns-v79-page-head button{border:1px solid rgba(255,255,255,.3);background:#fff;color:#0b3555;padding:10px 15px;border-radius:12px;font-weight:900;cursor:pointer}
.ns-v79-filterbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:13px;background:#fff;border:1px solid var(--ns79-line);border-radius:18px;box-shadow:0 8px 24px rgba(31,65,96,.06)}.ns-v79-filterbar input,.ns-v79-filterbar select{min-height:43px;border:1px solid #cddbe6;border-radius:11px;background:#fbfdff;padding:9px 12px;font-weight:750;outline:none}.ns-v79-filterbar>input{flex:1;min-width:240px}.ns-v79-filterbar label{display:flex;align-items:center;gap:7px;color:#5b7086;font-size:12px;font-weight:900}.ns-v79-filterbar button{min-height:43px;border:0;border-radius:11px;background:var(--ns79-navy);color:#fff;padding:9px 16px;font-weight:900;cursor:pointer}.ns-v79-filterbar input:focus,.ns-v79-filterbar select:focus{border-color:#208c79;box-shadow:0 0 0 4px rgba(15,143,121,.1)}
.ns-v79-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ns-v79-summary>div,.ns-session-stat{border:1px solid var(--ns79-line);background:#fff;border-radius:16px;padding:13px 15px;box-shadow:0 7px 20px rgba(31,65,96,.05)}.ns-v79-summary span{display:block;color:#6c8095;font-size:11px;font-weight:900;text-transform:uppercase}.ns-v79-summary b{display:block;margin-top:4px;color:#102b49;font-size:18px}.ns-session-stat{color:#5f7388;font-size:12px;font-weight:850}.ns-session-stat b{display:block;color:#08775e;font-size:20px}
.ns-v79-table-card{background:#fff;border:1px solid var(--ns79-line);border-radius:20px;box-shadow:0 10px 28px rgba(31,65,96,.06);overflow:auto;flex:1;min-height:0}.ns-v79-report-table{width:100%;min-width:1750px;border-collapse:collapse}.ns-v79-report-table th,.ns-v79-report-table td{padding:11px 10px;border-bottom:1px solid #e7eef4;text-align:left;white-space:nowrap;font-size:13px}.ns-v79-report-table th{position:sticky;top:0;z-index:2;background:#edf4f8;color:#183555;font-weight:950}.ns-v79-report-table td a{color:#175cd3;font-weight:900;text-decoration:underline}.ns-v79-report-table td.paid{color:#08775e;font-weight:900}.ns-v79-report-table td.due{color:var(--ns79-rose);font-weight:900}.ns-v79-report-table .empty,.ns-trash-card .empty{text-align:center;padding:28px;color:#708397}
.ns-trash-grid{display:grid;grid-template-columns:1fr;gap:14px;overflow:auto}.ns-trash-card{background:#fff;border:1px solid var(--ns79-line);border-radius:20px;overflow:hidden;box-shadow:0 9px 24px rgba(31,65,96,.06)}.ns-trash-title{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#f5f9fc;border-bottom:1px solid var(--ns79-line)}.ns-trash-title h3{font-size:19px;color:#153451;font-weight:950}.ns-trash-title b{display:grid;place-items:center;min-width:32px;height:32px;border-radius:999px;background:#e6eef5;color:#193b59}.ns-trash-scroll{overflow:auto}.ns-trash-card table{min-width:980px;width:100%;border-collapse:collapse}.ns-trash-card th,.ns-trash-card td{padding:10px;border-bottom:1px solid #e6edf3;text-align:left;font-size:13px;white-space:nowrap}.ns-trash-card th{background:#f9fbfd;color:#405b73}.ns-trash-card td button{border:0;border-radius:9px;background:#0f8f79;color:#fff;padding:7px 9px;margin-right:5px;font-size:11px;font-weight:900}.ns-trash-card td button.danger{background:#b33b54}.ns-v79-loading{padding:28px;background:#fff;border-radius:18px;color:#667b91;text-align:center}
.ns-sms-card{max-width:850px;margin:16px auto 0;background:#fff;border:1px solid var(--ns79-line);border-radius:24px;padding:22px;box-shadow:0 14px 34px rgba(31,65,96,.08)}.ns-sms-card label{display:block;margin-bottom:14px;color:#173653;font-weight:900}.ns-sms-card input,.ns-sms-card textarea{width:100%;margin-top:6px;border:1px solid #cbd9e4;border-radius:13px;padding:12px 14px;font:inherit;outline:none}.ns-sms-card input:focus,.ns-sms-card textarea:focus{border-color:#0f8f79;box-shadow:0 0 0 4px rgba(15,143,121,.1)}.ns-sms-card small{display:block;text-align:right;color:#74869a;margin-top:5px}.ns-sms-actions{display:flex;gap:9px;flex-wrap:wrap}.ns-sms-actions button{border:0;border-radius:12px;background:#0f8f79;color:#fff;padding:11px 16px;font-weight:900;cursor:pointer}.ns-sms-actions button.secondary{background:#153451}.ns-sms-status{margin-top:12px;color:#4c6177;font-weight:800}
@media(max-width:900px){.desktop-side{width:270px!important}.ns-v79-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ns-v79-page-head{padding:18px}.ns-v79-page-head h2{font-size:25px}.ns-v79-filterbar{align-items:stretch}.ns-v79-filterbar>*{width:100%!important}.ns-v79-filterbar label{justify-content:space-between}.ns-v79-filterbar label input{width:70%!important}.ns-bill-register-tabs{overflow-x:auto;flex-wrap:nowrap}.ns-bill-register-tabs button{white-space:nowrap}.ns-sms-card{margin:10px 0 0;padding:16px}.ns-bill-actions{flex-direction:column}}
@media(max-width:640px){.ns-v79-summary{grid-template-columns:1fr 1fr}.ns-v79-summary b{font-size:15px}.ns-v79-page-head{border-radius:17px}.ns-v79-page-head h2{font-size:22px}.ns-v79-page-head p{font-size:12px}.ns-dashboard-hero{padding:18px!important}.orders-table-wrap table{min-width:2350px!important}}

/* v80 compact working surfaces and selected navigation */
.ns-sidebar-nav .sidebar-btn.ns-nav-current{background:linear-gradient(135deg,rgba(42,190,161,.26),rgba(255,255,255,.13))!important;border-color:rgba(164,247,228,.38)!important;box-shadow:inset 3px 0 0 #60e7ca,0 8px 18px rgba(0,0,0,.1);color:#fff!important}.ns-sidebar-nav .sidebar-btn.ns-nav-current .ns-nav-icon{background:#e8fff8!important;color:#08725e!important}
#billsView{gap:8px!important}#billsView .ns-billing-center-head{padding:11px 13px!important;border-radius:17px!important;overflow:hidden!important}#billsView .ns-billing-center-head::after{display:none!important}.ns-billing-title-row{gap:10px!important}.ns-billing-title-row>div:first-child{min-width:260px;flex:1}.ns-billing-title-row h2{font-size:21px!important;line-height:1.1!important}.ns-billing-title-row p{margin-top:3px!important;font-size:11.5px!important;line-height:1.35!important}.ns-billing-kicker{font-size:9px!important;margin-bottom:2px!important}.ns-billing-top-actions{gap:6px!important}.ns-billing-create-btn,.ns-billing-back-btn{min-height:36px!important;padding:8px 11px!important;border-radius:10px!important;font-size:12px!important;line-height:1!important}.ns-billing-back-btn{border:1px solid #cbd8e5;background:#fff;color:#17344f;font-weight:900;cursor:pointer}.ns-billing-summary-grid{margin-top:8px!important;gap:6px!important}.ns-billing-summary-grid>div{padding:8px 10px!important;border-radius:11px!important;box-shadow:none!important}.ns-billing-summary-grid span{font-size:9px!important}.ns-billing-summary-grid b{margin-top:2px!important;font-size:14px!important}.ns-bill-register-tabs{margin-top:8px!important;gap:6px!important}.ns-bill-register-tabs button{padding:7px 11px!important;font-size:11px!important}.ns-billing-filter-row{display:flex;align-items:center;gap:7px;margin-top:8px}.ns-billing-filter-row input,.ns-billing-filter-row select{min-height:38px;border:1px solid #cddbe6;border-radius:10px;background:#fff;padding:8px 10px;color:#1b3955;font-size:12px;font-weight:750;outline:none}.ns-billing-filter-row input{min-width:220px;flex:1}.ns-billing-filter-row input:focus,.ns-billing-filter-row select:focus{border-color:#0f8f79;box-shadow:0 0 0 3px rgba(15,143,121,.1)}.ns-billing-refresh-btn{min-height:38px;border:0;border-radius:10px;background:#08233f;color:#fff;padding:8px 13px;font-size:12px;font-weight:900;cursor:pointer}.ns-bill-mobile-type{display:none}.ns-bill-register-tabs button.active{box-shadow:0 5px 12px rgba(8,35,63,.14)}
#billsView>div:last-child{min-height:170px!important}#billsView table th,#billsView table td{padding-top:9px!important;padding-bottom:9px!important;font-size:12px!important}
.orders-pagination{position:sticky!important;bottom:0!important;z-index:8!important;min-height:54px!important;flex:none!important;box-shadow:0 -8px 20px rgba(15,35,55,.06)}.orders-pagination .all-orders-btn{display:none!important}.page-total-count{margin-left:auto;position:sticky;right:10px;display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;border:1px solid #cfe0ea;border-radius:10px;background:#eef8f6;color:#0b5f51;font-size:13px;font-weight:950;white-space:nowrap}
#trashViewV79{overflow:auto!important;pointer-events:auto!important;min-height:0!important}#trashViewV79 .ns-v79-page-head{flex:none}.ns-trash-grid{flex:1;min-height:160px;overflow:visible!important}.ns-trash-scroll{max-width:100%;overflow:auto!important}.ns-trash-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:180px;padding:22px;border:1px solid #f0c8d1;border-radius:18px;background:#fff8fa;color:#8d2940;text-align:center}.ns-trash-error b{font-size:18px}.ns-trash-error span{color:#6e4b54}.ns-trash-error button{border:0;border-radius:10px;background:#9d3049;color:#fff;padding:9px 14px;font-weight:900;cursor:pointer}
#userActivityView,#systemReportsView,#trashViewV79,#smsHelpViewV79{overflow:auto!important}.ns-session-history-btn{border:1px solid #bcd8e7;border-radius:9px;background:#edf8ff;color:#124b69;padding:7px 10px;font-size:11px;font-weight:900;white-space:nowrap;cursor:pointer}.ns-session-history-row>td{padding:0!important;background:#f5f9fc}.ns-session-history-wrap{margin:10px 14px 14px;border:1px solid #cddce8;border-radius:14px;background:#fff;overflow:hidden}.ns-session-history-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;background:#eaf3f8;color:#173b56}.ns-session-history-title span{font-size:11px;color:#60758a}.ns-session-history-wrap table{width:100%;min-width:1120px;border-collapse:collapse}.ns-session-history-wrap th,.ns-session-history-wrap td{padding:9px;border-bottom:1px solid #e4edf3;text-align:left;font-size:11px;white-space:nowrap}.ns-session-history-wrap th{background:#f7fafc;color:#3c5870}.ns-session-history-wrap small{color:#718499}.ns-session-device{max-width:320px!important;white-space:normal!important;color:#60758a}

@media(max-width:900px){#billsView .ns-billing-center-head{padding:10px!important}.ns-billing-title-row{align-items:flex-start!important}.ns-billing-top-actions{width:100%}.ns-billing-summary-grid{grid-template-columns:repeat(4,minmax(110px,1fr))!important;overflow-x:auto;padding-bottom:2px}.ns-billing-summary-grid>div{min-width:110px}.ns-billing-filter-row{flex-wrap:wrap}.ns-billing-filter-row input{order:3;flex-basis:calc(100% - 82px)}.ns-billing-refresh-btn{order:4}.ns-trash-grid{display:block}.ns-trash-card+.ns-trash-card{margin-top:12px}}
@media(max-width:640px){#billsView{gap:6px!important}#billsView .ns-billing-center-head{border-radius:14px!important}.ns-billing-title-row h2{font-size:19px!important}.ns-billing-title-row p{font-size:10.5px!important}.ns-billing-top-actions{display:grid!important;grid-template-columns:1fr 1fr}.ns-billing-top-actions button{width:100%}.ns-billing-top-actions .ns-billing-back-btn{grid-column:1/-1}.ns-billing-summary-grid{display:grid!important;grid-template-columns:1fr 1fr!important;overflow:visible}.ns-billing-summary-grid>div{min-width:0}.ns-bill-register-tabs{display:none!important}.ns-bill-mobile-type{display:block}.ns-billing-filter-row{display:grid;grid-template-columns:1fr 1fr}.ns-billing-filter-row>*{width:100%;min-width:0!important}.ns-billing-filter-row input{order:initial;grid-column:1/-1}.ns-billing-refresh-btn{order:initial}.orders-pagination{justify-content:flex-start!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding:8px!important}.orders-pagination .page-btn{flex:none}.page-total-count{order:-1;margin-left:0;left:0;right:auto;flex:none}.ns-v79-page-head{padding:13px 14px!important}.ns-v79-page-head h2{font-size:20px!important}.ns-v79-page-head p{font-size:11px!important}.ns-session-history-wrap{margin:8px}}

/* v81 mobile-first working surfaces and all-order Sales Report */
.ns-mobile-controls-toggle{display:none;border:1px solid #bcd6e3;border-radius:11px;background:#eaf7f4;color:#075f51;min-height:40px;padding:9px 13px;font-size:12px;font-weight:950;cursor:pointer}
.ns-v81-order-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.ns-v81-report-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:2px 4px}.ns-v81-report-section-title span{display:block;color:#08775e;font-size:9px;font-weight:950;letter-spacing:.13em}.ns-v81-report-section-title h3{margin:2px 0 0;color:#173653;font-size:16px;font-weight:950}.ns-v81-report-section-title small{color:#667b91;font-size:11px;font-weight:750}.ns-v81-order-daily-card{flex:none;max-height:430px}.ns-v81-daily-table{min-width:920px}
@media(max-width:900px){.ns-v81-order-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){
  .ns-mobile-controls-toggle{display:inline-flex;align-items:center;justify-content:center}
  #ordersView .ns-orders-mobile-toggle{position:sticky;top:0;z-index:18;margin:8px 8px 0;background:#08233f;color:#fff;border-color:#08233f;flex:none;box-shadow:0 8px 18px rgba(8,35,63,.18)}
  #ordersView:not(.ns-mobile-controls-open) .orders-searchbar{display:none!important}
  #ordersView.ns-mobile-controls-open .orders-searchbar{display:flex!important}
  #ordersView .orders-table-wrap{border-radius:12px 12px 0 0}
  #billsView .ns-billing-title-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important}
  #billsView .ns-billing-title-row>div:first-child{min-width:0!important}
  #billsView .ns-billing-mobile-toggle{grid-column:2;grid-row:1;padding:8px 10px;white-space:nowrap}
  #billsView .ns-billing-center-head:not(.ns-mobile-controls-open){padding:8px 10px!important;position:sticky;top:0;z-index:18;box-shadow:0 8px 18px rgba(8,35,63,.1)}
  #billsView .ns-billing-top-actions{grid-column:1/-1}
  #billsView .ns-billing-center-head:not(.ns-mobile-controls-open) .ns-billing-top-actions,
  #billsView .ns-billing-center-head:not(.ns-mobile-controls-open) .ns-billing-summary-grid,
  #billsView .ns-billing-center-head:not(.ns-mobile-controls-open) .ns-bill-register-tabs,
  #billsView .ns-billing-center-head:not(.ns-mobile-controls-open) .ns-billing-filter-row{display:none!important}
  #billsView .ns-billing-center-head:not(.ns-mobile-controls-open) .ns-billing-kicker,
  #billsView .ns-billing-center-head:not(.ns-mobile-controls-open) .ns-billing-title-row p{display:none!important}
  #billsView .ns-billing-center-head.ns-mobile-controls-open .ns-billing-top-actions{display:grid!important}
  #billsView .ns-billing-center-head.ns-mobile-controls-open .ns-billing-summary-grid{display:grid!important}
  #billsView .ns-billing-center-head.ns-mobile-controls-open .ns-billing-filter-row{display:grid!important}
  #billsView>div:last-child{min-height:280px!important}
  .ns-v81-order-summary{grid-template-columns:1fr 1fr!important}
  .ns-v81-order-summary>div:last-child{grid-column:1/-1}
  .ns-v81-report-section-title{align-items:flex-start;flex-direction:column;gap:3px}
}
