/* ==============================================
   Symbiz Portal – Cleaned & Consolidated CSS
   ============================================== */

:root {
    --symbiz-primary:    #1a2b4c;
    --symbiz-accent:     #2c9a9a;
    --symbiz-light-bg:   #f5f5f5;
    --symbiz-text-dark:  #333333;
    --symbiz-text-light: #666666;
    --symbiz-border:     #e0e0e0;
    --drawer-width:      280px;
    --header-height:     64px;
}

/* ---------- Reset / Base ---------- */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--symbiz-text-dark);
    background: white;
}

/* ---------- Hide Zoho Default Elements ---------- */
.theme-header,
.theme-header-topbar,
.theme-responsive-menu-area,
.theme-menu-area,
.theme-navigation-and-icons,
.theme-footer-area,
.zpdark-section {
    display: none !important;
}

/* ---------- Layout Structure ---------- */
.owner-wrapper {
    width: 100%;
    min-height: 100vh;
    background: white;
}

/* Fixed Header */
.mdc-top-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1400;
    background: var(--symbiz-primary);
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 0;
    margin: 0;
}

.mdc-top-app-bar .material-icons,
.mdc-top-app-bar .material-icons-outlined {
    color: white;
}

.mdc-top-app-bar__section--align-start {
    display: flex;
    align-items: center;
    min-width: 200px;
}

/* Hamburger Button */
#hamburgId {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 28px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 12px 0 0;
    z-index: 1600;
}

.mdc-icon-button:focus,
.mdc-icon-button:active {
    outline: none;
    box-shadow: none;
}

/* Company Logo */
.company-logo {
    height: 48px;
    margin-left: 8px;
}

/* Drawer (Dismissible) */
.mdc-drawer--dismissible {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--drawer-width);
    height: calc(100vh - var(--header-height));
    background: white;
    border-right: 1px solid var(--symbiz-border);
    box-shadow: 3px 0 12px rgba(0,0,0,0.15);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mdc-drawer--open {
    transform: translateX(0);
}

.mdc-drawer__content {
    padding: 16px 0;
}

.menuLabel {
    color: #757575;
    font-size: 14px;
    font-weight: 600;
    margin: 16px 16px 8px;
    display: block;
}

.mdc-list-item {
    padding: 14px 20px;
    color: var(--symbiz-text-dark);
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.mdc-list-item:hover {
    background: #f5f5f5;
}

.mdc-list-item--activated,
.mdc-list-item.active {
    background: #e3f2fd;
    color: var(--symbiz-primary);
    font-weight: 500;
}

.mdc-list-item__graphic {
    margin-right: 16px;
}

/* Main Content */
.app-drawer-layout {
    width: 100%;
    display: block;
    min-height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    background: white;
}

#main-content {
    max-width: 100%;
    box-sizing: border-box;
    padding: 24px;
    transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

/* ---------- Profile Dropdown ---------- */
.profile-details {
    display: flex;
    align-items: center;
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background: white;
    border: 1px solid var(--symbiz-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1600;
    display: none;
    padding: 12px 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-tab {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-tab:last-child {
    border-bottom: none;
}

.dropdown-icon {
    font-size: 40px;
    margin-right: 16px;
    color: var(--symbiz-primary);
}

.dropdown-item.profile_name {
    font-size: 18px;
    font-weight: 600;
    color: var(--symbiz-text-dark);
    padding: 0;
    margin: 0;
}

.dropdown-item.profile_email {
    font-size: 14px;
    color: #777;
    padding: 4px 0 0 0;
    margin: 0;
}

/* ---------- Content Styling (Tables, Cards, etc.) ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--symbiz-primary);
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

thead tr {
    background: var(--symbiz-light-bg);
    border-bottom: 2px solid var(--symbiz-accent);
}

th, td {
    padding: 14px 16px;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid #eee;
}

tbody tr:last-child {
    border-bottom: none;
}

.mdc-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 24px;
}

/* Dashboard Cards Grid */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 columns on desktop */
    gap: 20px;
    margin-top: 20px;
}

.card-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-item h3 {
    margin: 0 0 10px;
    color: var(--symbiz-primary, #1a2b4c);
}

.card-item .card-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--symbiz-accent, #2c9a9a);
}

/* Optional: stack to 1 column on mobile */
@media (max-width: 600px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* ---------- Loader (Spinner) ---------- */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--symbiz-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------- Pagination ---------- */
#pagination, #pagination1, #pagination2, #pagination3 {
    text-align: right;
    margin: 10px 0 0;
}

#pagination button, #pagination1 button, #pagination2 button, #pagination3 button {
    border: 1px solid #d9d9d9;
    background: transparent;
    color: #000;
    padding: 8px 15px;
    cursor: pointer;
}

#pagination button:hover, #pagination1 button:hover, #pagination2 button:hover, #pagination3 button:hover {
    background: var(--symbiz-accent);
    color: white;
}

#pagination .active, #pagination1 .active, #pagination2 .active, #pagination3 .active {
    background: var(--symbiz-accent);
    color: white;
}

/* ---------- Utility Classes ---------- */
.hidden     { display: none !important; }
.flex       { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4      { gap: 16px; }
.mt-4       { margin-top: 16px; }
.mb-6       { margin-bottom: 24px; }
.p-6        { padding: 24px; }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    #main-content {
        padding: 16px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ---------- Zoho Overrides (minimal) ---------- */
.zpcontainer {
    width: 100%;
}

.theme-logo-parent {
    margin-left: 40px;
}

.theme-menu ul {
    margin-right: 50px;
}

.theme-menu ul li {
    margin-left: 40px;
}

.theme-menu ul li a {
    font-weight: bold;
}

.theme-menu ul li a:hover {
    text-decoration: none;
}

.theme-menu > ul > li:last-child {
    font-weight: bold;
    background-color: var(--symbiz-accent);
    color: white;
    border-radius: 5px;
    padding: 20px;
}

.theme-menu > ul > li:last-child:hover {
    background-color: #1f7a7a; /* darker teal */
}

[data-element-id="elm_HQUvqOPbWexjm7BCje-8fQ"].zpsection {
    padding-block-start: 50px !important;
}

/* ---------- Removed / Commented Out (Unused) ---------- */
/* Most property‑rental styles have been removed to keep only portal essentials.
   If you need any of them later, refer to the original CSS file. */