﻿
/* V137 Parking Management */
.parking-module-grid{display:grid;grid-template-columns:repeat(4,250px);gap:24px;margin-top:20px;justify-content:start;align-items:stretch}
.parking-module-grid .morzo-module-card{width:250px;min-width:250px;height:250px;min-height:250px}
@media(max-width:1120px){.parking-module-grid{grid-template-columns:repeat(3,250px)}}
@media(max-width:840px){.parking-module-grid{grid-template-columns:repeat(2,250px);gap:18px}}
@media(max-width:560px){.parking-module-grid{grid-template-columns:250px;gap:16px;justify-content:start}}
.parking-module-card{display:flex;flex-direction:column;min-height:190px;padding:22px;border:1px solid var(--color-border,#d9e2df);border-radius:16px;background:#fff;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}
.parking-module-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.parking-module-icon{font-size:30px;line-height:1;margin-bottom:14px}
.parking-module-card h3{margin:0 0 8px;font-size:20px}
.parking-module-card p{margin:0;color:var(--color-muted,#65736f);line-height:1.5}
.parking-module-action{margin-top:auto;padding-top:18px;font-weight:700}
.parking-readonly-value{min-height:44px;padding:11px 14px;border:1px solid var(--color-border,#d9e2df);border-radius:10px;background:#f7faf8;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.parking-readonly-value span{color:var(--color-muted,#65736f)}.parking-owner-field{min-width:0}
@media(max-width:1100px){.parking-module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.parking-module-grid{grid-template-columns:1fr}.parking-readonly-value{min-height:42px}}


/* =========================================
   V139 • MORZO COMPACT MODULE CARD SYSTEM
   Emergency Services card proportion is the
   visual reference for dashboard modules.
========================================= */
.morzo-module-grid{
    display:grid;
    grid-template-columns:repeat(4,250px);
    gap:24px;
    align-items:stretch;
    justify-content:start;
}
.morzo-module-card{
    width:250px;
    min-width:250px;
    min-height:250px;
    height:250px;
    box-sizing:border-box;
    padding:18px 16px 16px;
    border:1px solid rgba(0,54,49,.10);
    border-radius:18px;
    background:#fff;
    color:#003631;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    box-shadow:0 8px 24px rgba(0,54,49,.055);
    transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.morzo-module-card:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(0,54,49,.09);
    border-color:#FFEDA8;
}
.morzo-module-icon{
    width:64px;
    height:64px;
    flex:0 0 64px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:#eef5f3;
    font-size:29px;
    line-height:1;
    margin-bottom:10px;
    transition:background .2s ease,transform .2s ease;
}
.morzo-module-card:hover .morzo-module-icon{
    background:#FFEDA8;
    transform:scale(1.08);
}
.morzo-module-title{
    width:100%;
    min-height:48px;
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#003631;
    font-size:1.12rem;
    line-height:1.18;
    letter-spacing:-.2px;
}
.morzo-module-description{
    width:100%;
    min-height:42px;
    margin:7px 0 0;
    color:#687477;
    font-size:.88rem;
    line-height:1.38;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}
.morzo-module-meta{
    width:100%;
    min-height:23px;
    margin-top:7px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#00554d;
    font-size:.78rem;
    font-weight:700;
    line-height:1.2;
}
.morzo-module-action{
    margin-top:auto;
    min-width:108px;
    height:40px;
    padding:0 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#003f39;
    color:#fff;
    font-size:.88rem;
    font-weight:700;
    text-decoration:none;
}
.morzo-module-card.is-disabled{opacity:.7;cursor:default}
.morzo-module-card.is-disabled:hover{transform:none;box-shadow:0 8px 24px rgba(0,54,49,.055)}
.morzo-module-card.is-disabled:hover .morzo-module-icon{transform:none;background:#eef5f3}
.morzo-module-section-heading{margin-bottom:20px}
.morzo-module-section-heading h2{margin:5px 0 7px}
.morzo-module-section-heading p{margin:0;color:#687477}
@media (max-width:1120px){.morzo-module-grid{grid-template-columns:repeat(3,250px);}}
@media (max-width:840px){.morzo-module-grid{grid-template-columns:repeat(2,250px);gap:18px}}
@media (max-width:560px){.morzo-module-grid{grid-template-columns:250px;gap:16px;justify-content:start}.morzo-module-card{width:250px;min-width:250px;height:250px}}

/* V140 • Resident Quick Actions use the common compact MORZO module-card system. */
.dashboard-quick-actions{width:100%;}
.dashboard-quick-action-grid{margin-top:0;}
.dashboard-quick-actions .morzo-module-section-heading{margin-bottom:20px;}
@media (min-width:1181px){.dashboard-quick-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}


/* V141 • MORZO modern dashboard activity table. */
.morzo-recent-activity{width:100%;}
.morzo-recent-activity-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px;}
.morzo-recent-activity-heading h2{margin:5px 0 6px;}
.morzo-recent-activity-heading p{margin:0;color:#687477;}
.morzo-activity-table-wrap{width:100%;overflow-x:auto;border:1px solid rgba(0,54,49,.10);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(0,54,49,.055);}
.morzo-activity-table{width:100%;min-width:720px;border-collapse:separate;border-spacing:0;table-layout:fixed;}
.morzo-activity-table th,.morzo-activity-table td{padding:14px 16px;text-align:left;border-bottom:1px solid rgba(0,54,49,.08);vertical-align:middle;}
.morzo-activity-table th{background:#f5f8f7;color:#31514d;font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;}
.morzo-activity-table th:nth-child(1){width:48%;}.morzo-activity-table th:nth-child(2){width:18%;}.morzo-activity-table th:nth-child(3){width:17%;}.morzo-activity-table th:nth-child(4){width:17%;}
.morzo-activity-table tbody tr:last-child td{border-bottom:0;}
.morzo-activity-table tbody tr:hover{background:#fbfcfc;}
.morzo-activity-title{display:flex;align-items:center;gap:10px;min-width:0;}
.morzo-activity-title strong{font-size:.9rem;line-height:1.3;color:#102523;font-weight:700;white-space:normal;}
.morzo-activity-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#eef5f3;display:grid;place-items:center;font-size:17px;}
.morzo-activity-table td{font-size:.84rem;color:#5f6f70;}
.morzo-activity-status{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#eef8f5;color:#00554d;font-size:.73rem;font-weight:800;white-space:nowrap;}
.morzo-activity-empty{text-align:center;padding:22px;color:#687477;}
.dashboard-quick-actions{width:100%;}
.dashboard-quick-action-grid{margin-top:0;}
.dashboard-quick-actions .morzo-module-section-heading{margin-bottom:20px;}
@media (min-width:1181px){.dashboard-quick-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (max-width:850px){.morzo-activity-table{min-width:650px;}.morzo-activity-table th,.morzo-activity-table td{padding:12px;}}

/* V144 • Resident overview card alignment. */
.resident-dashboard-overview .widget-grid{grid-template-columns:repeat(4,250px);gap:24px;margin-top:0;justify-content:start;}
.resident-dashboard-overview .statistic-widget{width:250px;min-width:250px;min-height:250px;height:250px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-start;padding:18px 16px 16px;}
.resident-dashboard-overview .statistic-widget .widget-header{min-height:64px;}
.resident-dashboard-overview .statistic-widget .widget-icon{width:64px;height:64px;margin:0 auto 10px;border-radius:16px;}
.resident-dashboard-overview .statistic-widget .widget-content{width:100%;display:flex;flex-direction:column;align-items:center;}
.resident-dashboard-overview .statistic-widget .widget-title{min-height:48px;margin:0;display:flex;align-items:center;justify-content:center;}
.resident-dashboard-overview .statistic-widget .widget-value{margin-top:4px;line-height:1.05;}
.resident-dashboard-overview .statistic-widget .widget-change{min-height:24px;margin-top:7px;}
@media (max-width:1120px){.resident-dashboard-overview .widget-grid{grid-template-columns:repeat(3,250px);}}
@media (max-width:840px){.resident-dashboard-overview .widget-grid{grid-template-columns:repeat(2,250px);gap:18px;}}
@media (max-width:560px){.resident-dashboard-overview .widget-grid{grid-template-columns:250px;}.resident-dashboard-overview .statistic-widget{width:250px;min-width:250px;margin:0;}}

/* V143 • Live resident overview status tones. */
.statistic-widget.is-alert .widget-value{color:#b42318;}
.statistic-widget.is-alert .widget-change{color:#b42318;font-weight:700;}
.statistic-widget.is-success .widget-change{color:#176b4d;font-weight:600;}

/* =========================================
   V146 • MORZO UNIFIED CATEGORY CARDS
   All public/service category cards use the
   same compact dashboard card language.
========================================= */
.morzo-category-card{cursor:pointer;}
.morzo-category-card .morzo-module-action{border:0;cursor:pointer;}
.morzo-category-card:hover .morzo-module-icon{background:#FFEDA8;transform:scale(1.08);}
.morzo-category-card .morzo-module-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
/* Preserve compact dashboard proportions for legacy card grids. */
.card-grid .morzo-category-card,
.gadgets-grid .morzo-category-card,
.popular-gadgets-grid .morzo-category-card,
.gadget-category-grid .morzo-category-card,
.parking-module-grid .morzo-category-card{width:250px;min-width:250px;height:250px;min-height:250px;}
/* Use the same four-column compact rhythm where space permits. */
.card-grid:has(.morzo-category-card),
.gadgets-grid:has(.morzo-category-card),
.popular-gadgets-grid:has(.morzo-category-card),
.gadget-category-grid:has(.morzo-category-card){display:grid;grid-template-columns:repeat(4,250px);gap:24px;justify-content:start;align-items:stretch;}
@media(max-width:1120px){
  .card-grid:has(.morzo-category-card),.gadgets-grid:has(.morzo-category-card),.popular-gadgets-grid:has(.morzo-category-card),.gadget-category-grid:has(.morzo-category-card){grid-template-columns:repeat(3,250px);}
}
@media(max-width:840px){
  .card-grid:has(.morzo-category-card),.gadgets-grid:has(.morzo-category-card),.popular-gadgets-grid:has(.morzo-category-card),.gadget-category-grid:has(.morzo-category-card){grid-template-columns:repeat(2,250px);gap:18px;}
}
@media(max-width:560px){
  .card-grid:has(.morzo-category-card),.gadgets-grid:has(.morzo-category-card),.popular-gadgets-grid:has(.morzo-category-card),.gadget-category-grid:has(.morzo-category-card){grid-template-columns:250px;gap:16px;}
}

/* V147 • Unified hover treatment: every MORZO category/module icon uses the yellow hover background. */
.morzo-module-card:hover .morzo-module-icon,
.parking-module-card:hover .parking-module-icon,
.gadget-card:hover .gadget-card-icon,
.gadget-category-card:hover .gadget-category-icon,
.marketplace-item-card:hover .marketplace-item-icon,
.event-card:hover .event-card-icon{background:#FFEDA8 !important;transform:scale(1.08);}

/* V149 • Parking module icons use the same compact MORZO icon container.
   Prevent the hover accent from expanding across the card width. */
.parking-module-card .parking-module-icon{
    width:64px;
    height:64px;
    min-width:64px;
    flex:0 0 64px;
    box-sizing:border-box;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:#eef5f3;
    font-size:29px;
    line-height:1;
    margin:0 auto 10px;
    transition:background .2s ease,transform .2s ease;
}
.parking-module-card:hover .parking-module-icon{
    background:#FFEDA8 !important;
    transform:scale(1.08);
}

/* V151 • Billing & Receipt Management — same compact unified card language. */
.billing-management-card-grid{margin-top:0;}
.billing-workspace-panel{background:#fff;border:1px solid rgba(0,54,49,.10);border-radius:18px;box-shadow:0 8px 24px rgba(0,54,49,.055);padding:24px;}
.billing-panel-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:20px;}
.billing-panel-heading h2{margin:5px 0 6px;}
.billing-panel-heading p{margin:0;color:#687477;}
.billing-table-wrap{width:100%;overflow-x:auto;border:1px solid rgba(0,54,49,.10);border-radius:14px;}
.morzo-billing-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;table-layout:fixed;}
.morzo-billing-table th,.morzo-billing-table td{padding:13px 14px;text-align:left;vertical-align:middle;border-bottom:1px solid rgba(0,54,49,.08);font-size:.84rem;}
.morzo-billing-table th{background:#f5f8f7;color:#31514d;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem;font-weight:800;}
.morzo-billing-table tr:last-child td{border-bottom:0;}
.morzo-billing-table tbody tr:hover{background:#fbfcfc;}
.morzo-billing-table th:nth-child(1){width:8%}.morzo-billing-table th:nth-child(2){width:16%}.morzo-billing-table th:nth-child(3){width:13%}.morzo-billing-table th:nth-child(4){width:12%}.morzo-billing-table th:nth-child(5){width:13%}.morzo-billing-table th:nth-child(6){width:13%}.morzo-billing-table th:nth-child(7){width:14%}.morzo-billing-table th:nth-child(8){width:11%}
.billing-status{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:800;white-space:nowrap;}
.billing-status-overdue{background:#fde8e6;color:#b42318}.billing-status-due{background:#fff3cd;color:#8a5b00}.billing-status-upcoming{background:#eef5f3;color:#00554d}.billing-status-paid{background:#e6f6ee;color:#176b4d}
.morzo-billing-table td small{display:block;margin-top:4px;color:#687477;font-size:.72rem;line-height:1.25;}
.billing-mini-btn{height:36px;min-width:72px;padding:0 12px;font-size:.78rem;}
.billing-empty-state{padding:28px;text-align:center;color:#687477;background:#f7faf8;border:1px dashed rgba(0,54,49,.16);border-radius:14px;}
.billing-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;}
.billing-summary-grid>div{padding:18px;border:1px solid rgba(0,54,49,.10);border-radius:14px;background:#f8faf9;min-height:92px;display:flex;flex-direction:column;justify-content:center;}
.billing-summary-grid strong{font-size:1.35rem;color:#102523;line-height:1.15;}.billing-summary-grid span{margin-top:6px;color:#687477;font-size:.78rem;font-weight:700;}
.billing-intimation-settings{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.78rem;color:#31514d;font-weight:700;}
.billing-intimation-settings label{display:inline-flex;align-items:center;gap:6px;}
.billing-small-input{width:62px;height:36px;padding:0 8px;}
.billing-footnote{margin:14px 0 0;font-size:.78rem;}
.billing-payment-list{display:flex;flex-direction:column;gap:12px;}
.billing-payment-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border:1px solid rgba(0,54,49,.10);border-radius:14px;background:#fbfcfc;}
.billing-payment-row>div:first-child{min-width:190px;}.billing-payment-row strong{display:block;color:#102523;}.billing-payment-row small{display:block;margin-top:5px;color:#687477;}
.billing-payment-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}.billing-payment-input{width:120px}.billing-payment-mode{width:105px}.billing-payment-ref{width:150px}
@media(max-width:900px){.billing-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.billing-payment-row{align-items:flex-start;flex-direction:column;}.billing-payment-actions{justify-content:flex-start;}}
@media(max-width:560px){.billing-summary-grid{grid-template-columns:1fr;}.billing-workspace-panel{padding:18px;}.billing-payment-actions>*{width:100%!important;}.billing-intimation-settings{align-items:flex-start;flex-direction:column;}}


/* V151 • Member live overview — keep every notification/detail line inside the card. */
.resident-dashboard-overview .statistic-widget{overflow:hidden;}
.resident-dashboard-overview .statistic-widget .widget-content{min-height:0;flex:1;overflow:hidden;}
.resident-dashboard-overview .statistic-widget .widget-title{font-size:.86rem;line-height:1.2;min-height:42px;font-weight:700;}
.resident-dashboard-overview .statistic-widget .widget-value{font-size:2.25rem;line-height:1.02;max-width:100%;white-space:normal;overflow:hidden;text-overflow:ellipsis;}
.resident-dashboard-overview .statistic-widget .widget-change{width:100%;min-height:0;margin-top:7px;font-size:.70rem;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;}
.resident-dashboard-overview .statistic-widget.is-alert .widget-change{font-size:.69rem;}
.billing-history-block{margin-top:24px;}
.billing-history-block h3{margin:0 0 12px;color:#003631;font-size:1.05rem;}

/* V152 • Billing identity normalization + principal/penalty/current-payable presentation. */
.billing-summary-grid{grid-template-columns:repeat(6,minmax(0,1fr));}
.billing-summary-payable{background:#fffaf0 !important;border-color:rgba(138,91,0,.18) !important;}
.billing-summary-payable strong{color:#8a5b00 !important;}
@media(max-width:1180px){.billing-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:700px){.billing-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:480px){.billing-summary-grid{grid-template-columns:1fr;}}
/* V153 payment collection: show the live payable amount while retaining manual entry. */
.billing-current-payable-hint{display:block;margin-top:7px;font-size:12px;color:#52615e;}.billing-current-payable-hint strong{display:inline;color:#003631;}
.billing-payment-input{font-weight:700;}


/* =========================================
   V161.2 MORZO SERVICE WORKSPACE + TABLE FIX
========================================= */
.morzo-service-nav{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px clamp(18px,3vw,40px);background:#003631;color:#fcfaf5;box-shadow:0 4px 18px rgba(0,0,0,.12)}
.morzo-service-nav__brand{display:flex;flex-direction:column;gap:2px;min-width:0}
.morzo-service-nav__brand strong{font-size:1.12rem;line-height:1.25}
.morzo-service-nav__eyebrow{font-size:.7rem;letter-spacing:.12em;color:#ffeda8;font-weight:800}
.morzo-service-nav__actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.morzo-service-nav .btn{white-space:nowrap}
.morzo-service-nav .btn-secondary{background:#fff;color:#003631;border-color:#fff}
.morzo-service-console{color:#1b2927}
.morzo-service-console .page-header .container{max-width:1440px;margin:0 auto;padding-left:clamp(18px,3vw,40px);padding-right:clamp(18px,3vw,40px)}
.morzo-service-console .section>.container{max-width:1440px;margin:0 auto;padding-left:clamp(18px,3vw,40px);padding-right:clamp(18px,3vw,40px)}
.morzo-service-console .admin-table-wrap{width:100%;max-width:100%;overflow-x:auto}
.morzo-service-console table.admin-report-table{width:100%;min-width:850px;table-layout:fixed;border-collapse:collapse}
.morzo-service-console table.admin-report-table thead th{position:static;text-align:left;vertical-align:middle;padding:13px 14px;white-space:normal;line-height:1.35}
.morzo-service-console table.admin-report-table tbody td{padding:13px 14px;text-align:left;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.morzo-service-console table.admin-report-table th:nth-child(1),.morzo-service-console table.admin-report-table td:nth-child(1){width:29%}
.morzo-service-console table.admin-report-table th:nth-child(2),.morzo-service-console table.admin-report-table td:nth-child(2){width:13%}
.morzo-service-console table.admin-report-table th:nth-child(3),.morzo-service-console table.admin-report-table td:nth-child(3){width:15%}
.morzo-service-console table.admin-report-table th:nth-child(4),.morzo-service-console table.admin-report-table td:nth-child(4){width:23%}
.morzo-service-console table.admin-report-table th:nth-child(5),.morzo-service-console table.admin-report-table td:nth-child(5){width:20%}
.morzo-service-console table.admin-report-table td .input{width:100%;max-width:100%;min-width:0!important;box-sizing:border-box}
.morzo-service-console .section-heading-row{align-items:flex-start;gap:18px;flex-wrap:wrap}
.morzo-service-console .section-heading-row>div{min-width:0;flex:1}
@media(max-width:760px){.morzo-service-nav{align-items:flex-start;flex-direction:column}.morzo-service-nav__actions{justify-content:flex-start;width:100%}.morzo-service-nav__actions .btn{flex:1}}


/* =========================================
   V161.3 MORZO SERVICE CONSOLE POLISH
========================================= */
.morzo-service-console .page-header{padding-top:clamp(28px,4vw,52px);padding-bottom:clamp(28px,4vw,52px);min-height:0}
.morzo-service-console .page-header h1{max-width:100%;font-size:clamp(2.1rem,4.2vw,3.5rem);line-height:1.08;margin:.25em 0 .35em}
.morzo-service-console .page-header p{max-width:78ch;margin:0;line-height:1.5}
.morzo-service-console .section{padding-top:clamp(24px,3vw,40px);padding-bottom:clamp(30px,4vw,48px)}
.morzo-service-nav__actions{gap:8px}
.morzo-service-nav__link,.morzo-service-nav__logout{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid rgba(252,250,245,.38);border-radius:999px;background:transparent;color:#fcfaf5;text-decoration:none;font:inherit;font-weight:700;white-space:nowrap;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.morzo-service-nav__link:hover,.morzo-service-nav__logout:hover{background:rgba(252,250,245,.1);border-color:#fcfaf5;color:#fcfaf5}
.morzo-service-nav__link.is-active,.morzo-service-nav__link.is-active:hover{background:#ffeda8;border-color:#ffeda8;color:#003631;box-shadow:inset 0 -3px 0 rgba(0,54,49,.18)}
.morzo-service-nav__logout{margin-left:4px;border-color:#ffeda8;background:#ffeda8;color:#003631;cursor:pointer}
.morzo-service-nav__logout:hover{background:#fcfaf5;border-color:#fcfaf5;color:#003631}
.morzo-service-console .admin-report-table{border-collapse:separate;border-spacing:0}
.morzo-service-console .admin-report-table tbody tr+tr td{border-top:1px solid #e4e9e6}
.morzo-service-console .admin-report-table tbody tr:hover{background:rgba(0,54,49,.025)}
.morzo-service-console .admin-report-table th{font-weight:750;color:#17312d;background:#f4f6f2}
.morzo-service-console .morzo-backup-history{min-width:980px;table-layout:fixed}
.morzo-service-console .morzo-backup-history .backup-col-date{width:32%}
.morzo-service-console .morzo-backup-history .backup-col-type{width:16%}
.morzo-service-console .morzo-backup-history .backup-col-created{width:20%}
.morzo-service-console .morzo-backup-history .backup-col-keys{width:10%}
.morzo-service-console .morzo-backup-history .backup-col-id{width:22%}
.morzo-service-console .morzo-backup-history th,.morzo-service-console .morzo-backup-history td{padding:14px 16px;text-align:left;vertical-align:middle}
.morzo-service-console .morzo-backup-history th:nth-child(4),.morzo-service-console .morzo-backup-history td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
.morzo-service-console .morzo-backup-history td:nth-child(1),.morzo-service-console .morzo-backup-history td:nth-child(2),.morzo-service-console .morzo-backup-history td:nth-child(3){white-space:nowrap}
.morzo-service-console .morzo-backup-history td:nth-child(5) small{font-size:.82rem;overflow-wrap:anywhere;word-break:break-word}
.morzo-service-console .morzo-backup-history-wrap{border:1px solid #e4e9e6;border-radius:12px;overflow-x:auto}
.morzo-service-console .morzo-backup-history-wrap .admin-report-table{margin:0}
@media(max-width:760px){.morzo-service-nav__actions{width:100%;display:flex;flex-wrap:wrap}.morzo-service-nav__link,.morzo-service-nav__logout{flex:1 1 auto}.morzo-service-nav__logout{margin-left:0}.morzo-service-console .page-header{padding-top:26px;padding-bottom:28px}}
.morzo-service-console table.admin-report-table.morzo-backup-history th:nth-child(1),.morzo-service-console table.admin-report-table.morzo-backup-history td:nth-child(1){width:32%}
.morzo-service-console table.admin-report-table.morzo-backup-history th:nth-child(2),.morzo-service-console table.admin-report-table.morzo-backup-history td:nth-child(2){width:16%}
.morzo-service-console table.admin-report-table.morzo-backup-history th:nth-child(3),.morzo-service-console table.admin-report-table.morzo-backup-history td:nth-child(3){width:20%}
.morzo-service-console table.admin-report-table.morzo-backup-history th:nth-child(4),.morzo-service-console table.admin-report-table.morzo-backup-history td:nth-child(4){width:10%}
.morzo-service-console table.admin-report-table.morzo-backup-history th:nth-child(5),.morzo-service-console table.admin-report-table.morzo-backup-history td:nth-child(5){width:22%}


/* =========================================
   V161.5 BACKUP HISTORY — SOCIETY ADMIN + SERVICE
   Shared table geometry so headings and rows align
========================================= */
.morzo-backup-history-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid #e4e9e6;border-radius:12px;box-sizing:border-box}
table.admin-report-table.morzo-backup-history{width:100%;min-width:980px;table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0}
table.admin-report-table.morzo-backup-history col.backup-col-date{width:32%}
table.admin-report-table.morzo-backup-history col.backup-col-type{width:16%}
table.admin-report-table.morzo-backup-history col.backup-col-created{width:20%}
table.admin-report-table.morzo-backup-history col.backup-col-keys{width:10%}
table.admin-report-table.morzo-backup-history col.backup-col-id{width:22%}
table.admin-report-table.morzo-backup-history thead th{position:static;text-align:left!important;vertical-align:middle;padding:13px 16px;white-space:normal;line-height:1.35;box-sizing:border-box}
table.admin-report-table.morzo-backup-history tbody td{padding:13px 16px;text-align:left!important;vertical-align:middle;line-height:1.45;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
table.admin-report-table.morzo-backup-history thead th:nth-child(4),table.admin-report-table.morzo-backup-history tbody td:nth-child(4){text-align:right!important;font-variant-numeric:tabular-nums}
table.admin-report-table.morzo-backup-history tbody td:nth-child(1),table.admin-report-table.morzo-backup-history tbody td:nth-child(2),table.admin-report-table.morzo-backup-history tbody td:nth-child(3){white-space:nowrap}
table.admin-report-table.morzo-backup-history tbody td:nth-child(5) small{font-size:.82rem;overflow-wrap:anywhere;word-break:break-word}
table.admin-report-table.morzo-backup-history tbody tr+tr td{border-top:1px solid #e4e9e6}
@media(max-width:760px){table.admin-report-table.morzo-backup-history{min-width:900px}}


/* V161.2.22 SECURITY CONSOLE — separate operational navigation from public website */
.morzo-security-nav{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px clamp(18px,3vw,40px);background:#003631;color:#fcfaf5;box-shadow:0 4px 18px rgba(0,0,0,.12)}
.morzo-security-nav__brand{display:flex;flex-direction:column;gap:2px;min-width:0}
.morzo-security-nav__brand strong{font-size:1.12rem;line-height:1.25}
.morzo-security-nav__eyebrow{font-size:.7rem;letter-spacing:.12em;color:#ffeda8;font-weight:800}
.morzo-security-nav__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.morzo-security-nav__link,.morzo-security-nav__logout{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid rgba(252,250,245,.38);border-radius:999px;background:transparent;color:#fcfaf5;text-decoration:none;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer}
.morzo-security-nav__link:hover,.morzo-security-nav__logout:hover{background:rgba(252,250,245,.1);border-color:#fcfaf5;color:#fcfaf5}
.morzo-security-nav__link.is-active,.morzo-security-nav__link.is-active:hover{background:#ffeda8;border-color:#ffeda8;color:#003631}
.morzo-security-nav__logout{margin-left:4px;border-color:#ffeda8;background:#ffeda8;color:#003631}
.morzo-security-console{color:#1b2927;min-height:100vh}
.morzo-security-console .page-header .container,.morzo-security-console .section>.container{max-width:1440px;margin:0 auto;padding-left:clamp(18px,3vw,40px);padding-right:clamp(18px,3vw,40px)}
@media(max-width:760px){.morzo-security-nav{align-items:flex-start;flex-direction:column}.morzo-security-nav__actions{justify-content:flex-start;width:100%}.morzo-security-nav__link,.morzo-security-nav__logout{flex:1 1 auto}.morzo-security-nav__logout{margin-left:0}}


/* V162.3.9: force compact reset-history rows after all shared service-console table rules. */
#morzo-reset-history .admin-table-wrap,
#morzo-reset-history .admin-table-wrap * { box-sizing: border-box; }
#morzo-reset-history .admin-table-wrap { display:block !important; height:auto !important; min-height:0 !important; max-height:none !important; padding:0 !important; margin:0 !important; overflow-x:auto !important; overflow-y:visible !important; }
#morzo-reset-history table.admin-report-table,
#morzo-reset-history table.morzo-reset-history-table { display:table !important; height:auto !important; min-height:0 !important; max-height:none !important; border-collapse:collapse !important; border-spacing:0 !important; margin:0 !important; }
#morzo-reset-history table.admin-report-table thead { display:table-header-group !important; height:auto !important; }
#morzo-reset-history table.admin-report-table tbody { display:table-row-group !important; height:auto !important; min-height:0 !important; max-height:none !important; }
#morzo-reset-history table.admin-report-table tbody tr { display:table-row !important; height:auto !important; min-height:0 !important; max-height:none !important; }
#morzo-reset-history table.admin-report-table thead th,
#morzo-reset-history table.admin-report-table tbody td { display:table-cell !important; height:auto !important; min-height:0 !important; max-height:none !important; padding:8px 12px !important; line-height:1.3 !important; vertical-align:middle !important; }
#morzo-reset-history table.admin-report-table tbody td p { margin:0 !important; }
#morzo-reset-history .morzo-history-pagination { margin-top:12px !important; }


/* V162.3.10: compact embedded reset-history table; keep pagination close to records. */
.morzo-service-console #morzo-reset-history .morzo-reset-history-wrap{display:block!important;width:100%;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow-x:auto!important;overflow-y:visible!important;}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table{display:table!important;width:100%!important;min-width:760px!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;border-collapse:collapse!important;border-spacing:0!important;table-layout:fixed!important;}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table thead{display:table-header-group!important;height:auto!important;}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table tbody{display:table-row-group!important;height:auto!important;min-height:0!important;max-height:none!important;}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table tr{display:table-row!important;height:auto!important;min-height:0!important;max-height:none!important;}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table th,.morzo-service-console #morzo-reset-history table.morzo-reset-history-table td{display:table-cell!important;height:auto!important;min-height:0!important;max-height:none!important;padding:7px 10px!important;margin:0!important;line-height:1.25!important;vertical-align:middle!important;white-space:normal!important;overflow-wrap:anywhere!important;}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table col.reset-col-date{width:22%}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table col.reset-col-actor{width:16%}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table col.reset-col-modules{width:23%}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table col.reset-col-count{width:12%}
.morzo-service-console #morzo-reset-history table.morzo-reset-history-table col.reset-col-file{width:27%}
.morzo-service-console #morzo-reset-history .morzo-reset-backup-name{font-size:.78rem;line-height:1.25;overflow-wrap:anywhere;word-break:break-word;}
.morzo-service-console #morzo-reset-history .morzo-history-pagination{margin-top:8px!important;padding-top:0!important;}
.morzo-service-console #morzo-reset-history .morzo-history-pagination-buttons{gap:5px;}
