/*
Theme Name: HOA Web OceanWP Child
Theme URI: https://oceanwp.org/
Description: Theme for HOA Web, a subsidiary of Moore Web Exposure, LLC.  Based off the OceanWP Child theme.
Author: Chris Moore
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */



#sitewide-announcement {padding:10px 0;}
#sitewide-announcement p {margin:0;}



/* Document Library Styling */
#directory th.asc:after {display: inline;content: '↓';}
#directory th.desc:after {display: inline;content: '↑';}
  /* Document Library Front End Manager Styles */
#wpdm-dashboard-sidebar #tabs a:nth-child(3), #wpdm-dashboard-sidebar #tabs a:nth-child(4) {display: none} /* Hide settings and profile links */
#wpdm-dashboard-sidebar #logo-block {display: none}



/* Gravity Forms Style*/
/* Hide labels only on the Contact Us form (form 1), which uses placeholders */
#gform_wrapper_1 label{display: none!important}





/* WP Download Manager Adjustments */
.single-wpdmpro .entry-header {display: none;}
.wpdmap-card-filter .card-body {max-height:500px}
.wpdmap-filter-sidebar .card:nth-child(3) {display: none!important} /* Hide the Tags filter */



/* Manage Users Page Template Style*/
.manage-users {padding: 20px; margin: auto;}
.search-users {margin-bottom: 20px;}
.search-users input {width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px;}
.user-list {width: 100%; border-collapse: collapse; margin-top: 20px;}
.user-list th, .user-list td {border: 1px solid #ddd; padding: 8px; text-align: left;}
.user-list th {background-color: #f4f4f4; font-weight: bold;}
.user-list td {font-size: 14px;}
.user-list td:last-child {font-size: 0.8em; white-space: nowrap;}


/* Add New Users Page Template Style */
  .add-user-button {position:absolute; top:0; right:30px;  transition: background 0.3s ease;}

/* View other users's profile page (template: page-view-other-user-profile.php) */
#user-profile-photo {border-radius:50%; max-width:150px; max-height:150px}
#profile-top-center {text-align: center}
#profile-bottom-table {  width: 80%;  margin: 50px auto;   border-collapse: collapse; }
#profile-bottom-table td {width: 50%; text-align: left;  padding: 8px;   border: 1px solid #ccc;}
#profile-bottom-list {list-style: none; text-align:center  }


@media (max-width: 1201px) {
  /* Styles for Everything under 1201px */
.oceanwp-mobile-menu-icon {position: fixed; top:10px; left:10px;}
.oceanwp-mobile-menu-icon a {line-height: 1em!important; padding:15px}
.oceanwp-mobile-menu-icon .fa-bars:before {font-size:30px; color:#249052; filter:drop-shadow(2px 2px 2px #CCC)}

#site-logo {float:none; display:inline-block;}
#site-header-inner {text-align:center}

}



@media (min-width: 993px) and (max-width: 1200px) {
  /* Styles for large devices */
}



@media (min-width: 769px) and (max-width: 992px) {
  /* Styles for medium devices */
}





@media (min-width: 577px) and (max-width: 768px) {
  /* Styles for small devices */
}





@media (max-width: 576px) {
  /* Styles for extra small devices */
}


/* ── Login Page (page-login.php) ───────────────────────────────────── */
.mwx-login-wrap {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 20px;
}
.mwx-login-wrap #mwx-loginform {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 30px 30px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.mwx-login-wrap #mwx-loginform p { margin-bottom: 16px; }
.mwx-login-wrap #mwx-loginform label {
    display: block !important;  /* override the gform_wrapper hide */
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9em;
}
.mwx-login-wrap #mwx-loginform input[type="text"],
.mwx-login-wrap #mwx-loginform input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}
.mwx-login-wrap #mwx-loginform input[type="text"]:focus,
.mwx-login-wrap #mwx-loginform input[type="password"]:focus {
    border-color: #249052;
    outline: none;
    box-shadow: 0 0 0 2px rgba(36,144,82,.15);
}
.mwx-login-wrap #mwx-loginform .login-remember { font-size: 0.9em; }
.mwx-login-wrap #mwx-loginform .login-remember input { margin-right: 6px; }
.mwx-login-wrap #mwx-loginform input[type="submit"],
.mwx-login-wrap #mwx-loginform .button-primary {
    width: 100%;
    padding: 11px;
    background: #249052;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.mwx-login-wrap #mwx-loginform input[type="submit"]:hover {
    background: #1b6e3e;
}
.mwx-login-error {
    background: #fff3f3;
    border: 1px solid #f5c0c0;
    color: #c0392b;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.9em;
}
.mwx-login-links {
    text-align: center;
    margin-top: 14px;
    font-size: 0.88em;
}
.mwx-login-links a { color: #249052; }


/* ── Member Directory (page-member-directory.php) ───────────────────── */
.mwx-directory-wrap { padding: 10px 0 30px; }
.mwx-directory-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.mwx-directory-header h2 { margin: 0; flex: 0 0 auto; }
#mwx-dir-search {
    flex: 1 1 260px;
    max-width: 400px;
    padding: 9px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
}
#mwx-dir-search:focus {
    border-color: #249052;
    outline: none;
    box-shadow: 0 0 0 2px rgba(36,144,82,.15);
}
.mwx-directory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.mwx-directory-table thead th {
    background: #f4f4f4;
    border-bottom: 2px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}
.mwx-directory-table th.sortable:hover { background: #ebebeb; }
.mwx-directory-table .sort-icon { color: #999; font-size: 0.8em; margin-left: 4px; }
.mwx-directory-table tbody tr { border-bottom: 1px solid #eee; transition: background .1s; }
.mwx-directory-table tbody tr:hover { background: #f9f9f9; }
.mwx-directory-table td { padding: 10px 12px; vertical-align: middle; }
.mwx-directory-table .col-photo { width: 52px; padding: 6px 8px; }
.mwx-directory-table .col-name a { font-weight: 600; color: #249052; text-decoration: none; }
.mwx-directory-table .col-name a:hover { text-decoration: underline; }

/* Circular photo thumbnail */
.mwx-dir-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
/* Initials fallback bubble */
span.mwx-dir-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #249052;
    color: #fff;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: .03em;
}

.mwx-dir-empty { color: #888; font-style: italic; padding: 20px 0; }
.mwx-dir-count { margin-top: 12px; font-size: 0.85em; color: #888; }

@media (max-width: 600px) {
    .mwx-directory-table .col-address,
    .mwx-directory-table .col-phone { display: none; }
    .mwx-directory-header { flex-direction: column; align-items: flex-start; }
    #mwx-dir-search { max-width: 100%; }
}


/* ── Account Dashboard (page-account-dashboard.php) ─────────────────── */
.mwx-dashboard {
    padding: 10px 0 40px;
    max-width: 900px;
}

/* Hero greeting strip */
.mwx-dash-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}
.mwx-dash-avatar-wrap { flex: 0 0 auto; }
.mwx-dash-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #249052;
}
span.mwx-dash-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #249052;
    color: #fff;
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: .02em;
}
.mwx-dash-greeting { flex: 1 1 200px; }
.mwx-dash-greeting h1 {
    margin: 0 0 6px;
    font-size: 1.7em;
    line-height: 1.2;
}
.mwx-dash-greeting p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

/* Card grid */
.mwx-dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.mwx-dash-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow .15s, border-color .15s, transform .12s;
}
.mwx-dash-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    border-color: #249052;
    transform: translateY(-2px);
}
.mwx-dash-card-icon {
    font-size: 1.8em !important;
    color: #249052;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    margin-bottom: 4px;
}
.mwx-dash-card-label {
    font-weight: 700;
    font-size: 1em;
    color: #222;
}
.mwx-dash-card-desc {
    font-size: 0.83em;
    color: #777;
    line-height: 1.4;
}

/* Subtle variant — de-emphasised secondary actions */
.mwx-dash-card--subtle {
    background: #fafafa;
}
.mwx-dash-card--subtle .mwx-dash-card-icon { color: #888; }
.mwx-dash-card--subtle .mwx-dash-card-label { color: #555; }

/* Admin-only cards — tinted border */
.mwx-dash-card--admin {
    border-color: #c8e6d4;
    background: #f5fbf7;
}
.mwx-dash-card--admin .mwx-dash-card-icon { color: #1a7a42; }
.mwx-dash-card--admin:hover { border-color: #249052; }

/* Logout */
.mwx-dash-footer { padding-top: 4px; }
.mwx-dash-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88em;
    color: #999 !important;
    text-decoration: none !important;
    transition: color .15s;
}
.mwx-dash-logout:hover { color: #c0392b !important; }
.mwx-dash-logout .dashicons { font-size: 1em !important; width: auto !important; height: auto !important; line-height: 1.4 !important; }

@media (max-width: 600px) {
    .mwx-dash-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
    .mwx-dash-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .mwx-dash-cards { grid-template-columns: 1fr; }
}


/* ── Profile Photo Resize Preview (profile-photo-resize.js) ─────────── */
#mwx-photo-preview-wrap {
    display: none;
    margin: 16px 0 8px;
}
#mwx-photo-preview-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
#mwx-photo-preview-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #249052;
    display: block;
    flex: 0 0 auto;
}
#mwx-photo-preview-label {
    font-size: 0.85em;
    color: #555;
    margin: 0;
    line-height: 1.5;
    flex: 1 1 180px;
}

/* ── Edit Profile: success message ──────────────────────────────────── */
.mwx-profile-updated {
    background: #f0faf4;
    border: 1px solid #9fd4b3;
    border-left: 4px solid #249052;
    color: #1a6638;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ── Download Manager: category filter tree bullets ────────────────────
   Top-level categories (e.g. "Board Meeting Minutes") should have no bullet.
   Sub-categories (e.g. the year folders nested under a category) keep a
   bullet so the hierarchy is easy to scan at a glance. ─────────────────── */
#wpdmcat-tree,
#wpdmcat-tree > li {
	list-style: none;
	margin: 0;
	padding: 0;
}
#wpdmcat-tree li ul {
	list-style: none;
	margin: 4px 0 4px 6px;
	padding-left: 18px;
}
#wpdmcat-tree li ul li {
	list-style: circle;
}


/* ── WPDM Related Documents cards ── */
.rg-doc-related > h3 { margin: 0 0 20px !important; }
.rg-doc-related .w3eden .row > [class*="col-"] { display: flex; margin-bottom: 20px; }
.rg-rel-card { display: flex; flex-direction: column; width: 100%; padding: 18px 20px; background: #fff; border: 1px solid #e2e2e2; border-left: 4px solid #d25e9f; border-radius: 4px; }
.rg-rel-card .rg-rel-title { margin: 0 0 6px; padding: 0; font-size: 17px; line-height: 1.35; }
.rg-rel-card .rg-rel-title a { color: #222; text-decoration: none; }
.rg-rel-card .rg-rel-title a:hover { color: #b04585; }
.rg-rel-card .rg-rel-meta { font-size: 13px; color: #777; margin-bottom: 14px; }
.rg-rel-card .rg-rel-meta i { margin-right: 4px; }
.rg-rel-card .rg-rel-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.rg-rel-card .rg-rel-actions a,
.rg-rel-card .rg-rel-actions .btn { display: inline-block; padding: 7px 16px !important; font-size: 13px !important; font-weight: 600; line-height: 1.4 !important; border-radius: 4px !important; text-decoration: none !important; }
.rg-rel-card .rg-rel-actions .rg-rel-view { background: #fff; color: #d25e9f !important; border: 1px solid #d25e9f; }
.rg-rel-card .rg-rel-actions .rg-rel-view:hover { background: #fdf2f8; }
.rg-rel-card .rg-rel-actions .wpdm-download-link,
.rg-rel-card .rg-rel-actions .btn-primary { background: #d25e9f !important; border: 1px solid #d25e9f !important; color: #fff !important; }
@media (max-width: 767px) { .rg-doc-related .w3eden .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; } }
/* END WPDM Related Documents cards */


/* ── GF Signature: theme forces button text white, which hid the clear/type icons ── */
.gform_wrapper .gfield_signature_ui_container button,
.gform_wrapper .gfield_signature_ui_container button:hover,
.gform_wrapper .gfield_signature_ui_container button:focus {
	color: #555 !important;
	background: none !important;
	font-size: 18px;
}
.gform_wrapper .gfield_signature_ui_container button:hover { color: #d25e9f !important; }
/* END GF Signature */


/* ── Page header: stack title and breadcrumbs so long titles never overlap (OceanWP absolutely positions breadcrumbs on desktop) ── */
.page-header .container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.page-header .site-breadcrumbs {
	position: static;
	top: auto;
	right: auto;
	height: auto;
	max-width: 100%;
	margin: 10px 0 0;
	transform: none;
	line-height: 1.5;
}
/* END Page header */
