.text-align-right {
    text-align: right;
}


/* Sidebar top: logo and hamburger aligned with header line */

.sidebar-wrapper .sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: -50px;
    padding: 4px 16px;
    min-height: 50px;
    box-sizing: border-box;
    border-bottom: 2px solid #607c53;
}

.sidebar-wrapper .sidebar-header-logo {
    display: flex;
    align-items: center;
}

.sidebar-wrapper .sidebar-header .gr-logo {
    height: 32px;
    width: auto;
    display: block;
}

.sidebar-wrapper .sidebar-header-toggle.sidebarCollapse {
    width: 40px;
    height: 40px;
    padding: 0;
    color: #3b3f5c;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent!important;
}

.sidebar-wrapper .sidebar-header-toggle.sidebarCollapse:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #1e3a5f;
}

.sidebar-wrapper .sidebar-header-toggle.sidebarCollapse svg {
    display: block;
    width: 24px;
    height: 24px;
}


/* When sidebar is closed: visible strip on left so hover opens it */

.sidebar-closed .sidebar-wrapper {
    background: #fcfcfc;
    border-right: 1px solid rgb(215, 224, 234);
}

/*
 * Light sidebar: theme default submenu links use #fff (invisible on light bg).
 * Keep inactive items readable; highlight the active item.
 */
#sidebar ul.menu-categories ul.submenu > li a {
    color: #0e1726;
}

#sidebar ul.menu-categories li.menu ul.submenu > li a:before {
    background-color: #888ea8;
}

#sidebar ul.menu-categories ul.submenu > li a:hover,
#sidebar ul.menu-categories li.menu ul.submenu > li a:hover {
    color: #607c53;
}

#sidebar ul.menu-categories ul.submenu > li a:hover:before,
#sidebar ul.menu-categories li.menu ul.submenu > li a:hover:before {
    background-color: #607c53 !important;
}

#sidebar ul.menu-categories li.menu ul.submenu > li.active a {
    color: #607c53;
    font-weight: 600;
}

#sidebar ul.menu-categories li.menu ul.submenu > li.active a:before {
    background-color: #607c53;
}

#sidebar ul.menu-categories li.menu ul.submenu > li.active a:hover {
    color: #4a6340 !important;
}

#sidebar ul.menu-categories li.menu ul.submenu > li.active a:hover:before {
    background: #4a6340 !important;
}


/* Action Button Styles - Edit and Delete Icons */

.action-btn.btn-edit:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.action-btn.btn-edit:hover svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.action-btn.btn-delete:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.action-btn.btn-delete:hover svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.action-btn.btn-visit {
    background-color: #97820c;
    color: #fff;
    border: 1px solid #97820c;
}

.action-btn.btn-visit:hover {
    background-color: #c9ad10 !important;
    color: #ffffff !important;
    border-color: #c9ad10 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.action-btn.btn-visit:hover svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.action-btn.btn-edit:active,
.action-btn.btn-delete:active,
.action-btn.btn-visit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* -------------------------------------------------------------------------- */


/* Setup / Setup Values pages                                                 */


/* -------------------------------------------------------------------------- */

.setup-page .widget-content,
.setup-values-page .widget-content {
    padding: 15px;
}

.setup-values-page .field-group > .dv-label {
    font-weight: 700;
    color: #1f2937;
}

.setup-values-page .field-group:not(:last-child) {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.setup-page .setup-location-levels-list:not(:empty) {
    margin-top: 0.5rem;
}

.field-help-text {
    margin-top: 0.375rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.setup-page .mb-4 > .field-help-text:last-child {
    margin-bottom: 0;
}

.setup-page .field-help-text + .setup-cemetery-map {
    margin-top: 0.75rem;
}

.setup-page .setup-save-next-btn,
.setup-values-page .setup-save-next-btn {
    background-color: #2d5016;
    border-color: #2d5016;
    color: #fff;
}

.setup-page .setup-save-next-btn:hover,
.setup-page .setup-save-next-btn:focus,
.setup-page .setup-save-next-btn:active,
.setup-values-page .setup-save-next-btn:hover,
.setup-values-page .setup-save-next-btn:focus,
.setup-values-page .setup-save-next-btn:active {
    background-color: #244113;
    border-color: #244113;
    color: #fff;
}

.setup-page .setup-save-next-btn:disabled,
.setup-values-page .setup-save-next-btn:disabled {
    background-color: #2d5016;
    border-color: #2d5016;
    color: #fff;
    opacity: 0.75;
}

.setup-success-page .widget-content {
    padding: 15px;
}

.plan-details-page .widget-content {
    padding: 20px;
}

.plan-details-card {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
}

.plan-details-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f7;
    color: #2d5016;
}

.plan-details-list {
    margin: 0;
}

.plan-details-row {
    display: grid;
    grid-template-columns: minmax(140px, 38%) 1fr;
    gap: 0.75rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.plan-details-row:last-child {
    border-bottom: 0;
}

.plan-details-row dt {
    margin: 0;
    font-weight: 600;
    color: #515365;
}

.plan-details-row dd {
    margin: 0;
    color: #3b3f5c;
    word-break: break-word;
}

.plan-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.plan-badge-active,
.plan-badge-status {
    background: #eaf4e3;
    color: #2d5016;
}

.plan-badge-inactive {
    background: #fdecec;
    color: #b42318;
}

.plan-upgrade-section {
    background: #fafcf8;
}

.plan-upgrade-card {
    border: 1px solid #dbe3d3;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.plan-upgrade-card-current {
    border-color: #2d5016;
    background: #f7fbf4;
}

.plan-upgrade-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2d5016;
}

.plan-upgrade-label-new {
    color: #1d4ed8;
}

.plan-upgrade-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0e1726;
}

@media (max-width: 767px) {
    .plan-details-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.is-hidden {
    display: none;
}

.dv-flex-1 {
    flex: 1;
}

.dv-muted-intro {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.dv-label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

.dv-required {
    color: #dc3545;
}

.dv-input {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    color: #333;
    font-size: 15px;
    box-shadow: none!important;
    transition: all 0.3s;
    letter-spacing: 0;
}

.setup-page .form-control:focus,
.setup-values-page .form-control:focus {
    background-color: #ffffff;
    border-color: #617275;
    box-shadow: 0 0 0 0.2rem rgba(97, 114, 117, 0.25);
    outline: none;
}

select.form-control,
select.dv-input{
    background-image: url('../img/down-arrow.png');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.dv-error-text {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.dv-mt-8 {
    margin-top: 8px;
}

.dv-min-height-50 {
    min-height: 50px;
}

/* .dv-btn-gradient {
    background: linear-gradient(135deg, #607c53 0%, #607c53 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
} */

.dv-btn-gradient.w-100 {
    padding: 12px;
}

.dv-btn-nowrap {
    white-space: nowrap;
}

.dv-btn-raise:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(97, 114, 117, 0.4);
}

.dv-btn-raise:active {
    transform: translateY(0);
}

.dv-step-box {
    background-color: #f8f9fa;
    border-left: 4px solid #617275;
    padding: 15px;
    border-radius: 8px;
}

.dv-step-title {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.dv-step-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.dv-step-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.dv-step-list {
    color: #666;
    font-size: 14px;
    padding-left: 20px;
    line-height: 1.8;
}

.dv-mb-12 {
    margin-bottom: 12px;
}

.dv-mb-10 {
    margin-bottom: 10px;
}

.dv-mb-8 {
    margin-bottom: 8px;
}

.dv-mb-0 {
    margin-bottom: 0;
}

.dv-mt-12 {
    margin-top: 12px;
}

.dv-level-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.dv-level-row {
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.dv-level-text {
    color: #333;
    font-size: 14px;
}

.dv-remove-btn {
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
}

.dv-remove-btn:hover {
    background: #c82333;
    color: #ffffff;
}

.dv-btn-link {
    text-decoration: none;
    display: block;
    text-align: center;
}

.dv-success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.dv-success-title {
    color: #333;
    font-weight: 600;
    margin-top: 15px;
    font-size: 24px;
}

.dv-success-message {
    color: #28a745;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

.dv-card {
    background: #f8f9fa;
    border-radius: 8px;
}

.dv-card-white {
    background: #ffffff;
    border-radius: 6px;
}

.dv-card-pad-20 {
    padding: 20px;
}

.dv-card-pad-15 {
    padding: 15px;
}

.dv-card-title {
    color: #333;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.dv-config-item {
    padding-bottom: 15px;
}

.dv-border-bottom {
    border-bottom: 1px solid #e9ecef;
}

.dv-flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dv-config-label {
    color: #666;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dv-mt-5 {
    margin-top: 5px;
}

.dv-config-value {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.dv-config-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #617275 0%, #505416 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-config-badge-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
}

.dv-empty-state {
    text-align: center;
    padding: 20px;
    color: #666;
}

.dv-info-alert {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.dv-list-pad {
    padding-left: 20px;
}

.dv-text-success {
    color: green;
}

.dv-text-danger {
    color: red;
}


/* -------------------------------------------------------------------------- */


/* Common utility classes                                                     */


/* -------------------------------------------------------------------------- */

.dv-will-change-transform {
    will-change: transform;
}

.dv-w-57 {
    width: 57%;
}

.dv-w-65 {
    width: 65%;
}

.dv-w-80 {
    width: 80%;
}

.dv-w-90 {
    width: 90%;
}

.dv-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* padding: 9px 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease; */
    text-decoration: none;
}

.dv-icon-no-shrink {
    flex-shrink: 0;
}

.dv-kml-preview {
    height: 400px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dv-profile-container {
    max-width: 700px;
    margin: 20px;
}

.dv-profile-change-container {
    max-width: 520px;
    margin: 30px auto;
}


/* -------------------------------------------------------------------------- */


/* Action buttons (edit/delete)                                               */


/* -------------------------------------------------------------------------- */

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn.btn-view-map,
.action-btn.btn-view-notes {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    cursor: pointer;
    padding: 0;
}

.table>tbody .action-btns .action-btn.btn-view-map svg,
.table>tbody .action-btns .action-btn.btn-view-map:hover svg,
.table>tbody .action-btns .action-btn.btn-view-notes svg,
.table>tbody .action-btns .action-btn.btn-view-notes:hover svg {
    color: #16a34a;
    stroke: currentColor;
}

.action-btn.btn-edit {
    background-color: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.action-btn.btn-delete {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    cursor: pointer;
    padding: 0;
}


/* -------------------------------------------------------------------------- */


/* Auth (Signup/Login/Forgot/Reset)                                           */


/* -------------------------------------------------------------------------- */

.dv-auth-title {
    color: #333;
    font-weight: 600;
    margin-top: 15px;
    font-size: 24px;
}

.cemetery-switcher-wrap {
    display: flex;
    align-items: center;
}

.cemetery-switcher-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.cemetery-switcher-label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #505416;
    white-space: nowrap;
}

.cemetery-switcher-select {
    min-width: 160px;
    max-width: 220px;
    border-color: #c5d4b8;
    font-size: 0.875rem;
}

.cemetery-switcher-select:focus {
    border-color: #617275;
    box-shadow: 0 0 0 0.2rem rgba(97, 114, 117, 0.2);
}

.cemetery-switcher-current {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #607c53;
}

.auth-cemetery-checklist {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fafbf8;
}

.auth-cemetery-checklist .form-check {
    margin-bottom: 0.35rem;
}

.auth-cemetery-checklist .form-check:last-child {
    margin-bottom: 0;
}


/* Login — remember / forgot row + sign-up footer */

.auth-login-page .auth-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.auth-login-page .auth-login-actions .form-check-label {
    font-size: 0.875rem;
    color: #4b5563;
}

.auth-login-page .auth-login-forgot {
    font-size: 0.875rem;
    font-weight: 600;
    color: #505416;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.auth-login-page .auth-login-forgot:hover {
    color: #607c53;
    text-decoration: underline;
}

.auth-login-page .auth-login-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e6ed;
    text-align: center;
}

.auth-login-page .auth-login-footer-label {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-login-page .auth-login-btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 20px;
    /* font-size / font-weight / line-height: see admin button typography below */
    color: #505416;
    background: #fff;
    border: 2px solid #617275;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login-page .auth-login-btn-signup:hover {
    color: #607c53;
    background: #f4f7ef;
    border-color: #505416;
    box-shadow: 0 2px 8px rgba(80, 84, 22, 0.12);
}

.auth-login-page .auth-login-btn-signup:focus-visible {
    outline: 2px solid #617275;
    outline-offset: 2px;
}

.auth-login-page .form-control:focus {
    background-color: #ffffff;
    border-color: #617275;
    box-shadow: 0 0 0 0.2rem rgba(97, 114, 117, 0.25);
    outline: none;
}

.auth-signup-page .form-control:focus {
    background-color: #ffffff;
    border-color: #617275;
    box-shadow: 0 0 0 0.2rem rgba(97, 114, 117, 0.25);
    outline: none;
}

.auth-signup-page .dv-auth-title {
    margin-bottom: 1rem;
}

.dv-relative {
    position: relative;
    display: block;
}

.dv-input-toggle {
    padding-right: 45px;
}

.dv-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    line-height: 1;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    outline: none;
    z-index: 2;
}

.dv-password-toggle:hover {
    color: #617275;
    opacity: 0.8;
}

.dv-password-toggle:active {
    opacity: 0.6;
}

.dv-password-toggle:focus-visible {
    color: #343a40;
    outline: 2px solid #6c757d;
    outline-offset: 1px;
    border-radius: 4px;
}

.dv-password-eye-icon {
    position: relative;
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.dv-password-eye-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dv-password-strength {
    font-size: 12px;
}

.dv-text-muted {
    color: #666;
}

.dv-text-muted-14 {
    color: #666;
    font-size: 14px;
}

.dv-font-12 {
    font-size: 12px;
}

#passwordRequirements {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
}

#passwordRequirements li {
    padding: 2px 0;
}

#passwordRequirements span[id^="check-"] {
    margin-right: 5px;
}

.eye-slash {
    position: relative;
    display: inline-flex;
}

.eye-slash::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #666;
    transform: translateY(-50%) rotate(-45deg);
    transform-origin: center;
}

#emailDisplay {
    color: #617275;
}

.dv-otp-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
}

.dv-otp-label {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

#otpDisplay {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 8px;
    color: #617275;
    margin: 0;
}

.dv-otp-input {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 5px;
}

.dv-link-muted {
    color: #617275;
    text-decoration: none;
    font-size: 14px;
}

.dv-link-muted:hover {
    text-decoration: underline;
}


/* -------------------------------------------------------------------------- */


/* Shared modals                                                              */


/* -------------------------------------------------------------------------- */

.dv-modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #fff5f5;
}

.dv-delete-title {
    color: #dc3545;
}

.dv-modal-body-pad {
    padding: 1.5rem 1.75rem;
    overflow: visible;
}

.dv-modal-footer-border {
    border-top: 1px solid #e9ecef;
}

.dv-inline-form {
    display: inline;
    margin: 0;
}

.dv-delete-modal .modal-dialog {
    max-width: 520px;
    width: calc(100% - 2rem);
    margin: 1.75rem auto;
}

.dv-delete-modal .modal-content {
    overflow: visible;
}

.dv-delete-modal .modal-body {
    max-height: none;
    overflow: visible;
}

.dv-delete-text {
    font-size: 1rem;
    line-height: 1.55;
    color: #212529 !important;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    overflow: visible;
    max-height: none;
}

.dv-delete-text p {
    color: inherit !important;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    margin-bottom: 0.75rem;
}

.dv-delete-text p:last-child {
    margin-bottom: 0;
}

.dv-delete-text-strong {
    color: #212529 !important;
    font-weight: 700;
}

.dv-mr-10 {
    margin-right: 10px;
}

.dv-mr-5 {
    margin-right: 5px;
}

.dv-align-middle {
    vertical-align: middle;
}


/* -------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------- */
/* Cemetery info / Website Quill editor                                       */
/* -------------------------------------------------------------------------- */

#info {
    min-height: 0;
    background: #fff !important;
}

.website-cemetery-info-editor #info.ql-container {
    min-height: 240px;
}

.website-cemetery-info-editor .ql-editor {
    color: #333 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    min-height: 220px !important;
}

.website-cemetery-info-editor .ql-editor * {
    color: inherit !important;
}

.website-cemetery-info-editor .ql-editor p,
.website-cemetery-info-editor .ql-editor div,
.website-cemetery-info-editor .ql-editor span,
.website-cemetery-info-editor .ql-editor h1,
.website-cemetery-info-editor .ql-editor h2,
.website-cemetery-info-editor .ql-editor h3,
.website-cemetery-info-editor .ql-editor h4,
.website-cemetery-info-editor .ql-editor h5,
.website-cemetery-info-editor .ql-editor h6,
.website-cemetery-info-editor .ql-editor li,
.website-cemetery-info-editor .ql-editor ul,
.website-cemetery-info-editor .ql-editor ol {
    color: #333 !important;
}

.website-cemetery-info-editor .ql-container {
    font-family: inherit !important;
    font-size: 16px !important;
    color: #333 !important;
}

.website-cemetery-info-editor .ql-editor.ql-blank::before {
    color: #999 !important;
}

.ql-snow .ql-stroke {
    stroke: #444 !important;
}

.ql-snow .ql-fill {
    fill: #444 !important;
}

.ql-snow.ql-toolbar {
    border: 1px solid #ccc !important;
    background: #fafafa !important;
}

.ql-snow .ql-container {
    border: 1px solid #ccc !important;
    background: #fff !important;
}

.dv-sub-label {
    color: #666;
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 4px;
}

.dv-range-separator {
    padding: 0 10px;
    font-size: 20px;
    color: #617275;
    font-weight: 600;
}

.dv-range-display {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.dv-range-label {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.dv-range-text {
    color: #617275;
    font-size: 14px;
}


/* Data Fields page – 6 sections (3×2), section-based edit */

.data-fields-page .data-fields-section-card {
    border-radius: 8px;
    overflow: hidden;
}

.data-fields-section-header {
    background: linear-gradient(135deg, #607c53 0%, #607c53 100%);
    color: #ffffff;
    padding: 14px 18px;
    margin: 0;
}

.data-fields-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.data-fields-section-body {
    padding: 18px;
}

.data-fields-section-body .widget-content.widget-content-area {
    padding: 18px;
}

.data-fields-empty-text {
    color: #666;
    font-size: 14px;
}

.data-fields-list-item {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.data-fields-list-item:last-child {
    border-bottom: none;
}


/* Manage Data Fields – 6 section blocks (reference: manage-data-fields.php) */

.manage-data-fields-pg .grave-detail {
    padding: 0;
}

.manage-data-fields-pg .padding-col {
    padding: 12px;
}

.manage-data-fields-pg .grave-block {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 16px;
}

.manage-data-fields-pg .olive-section {
    background: linear-gradient(135deg, #607c53 0%, #607c53 100%);
    color: #fff;
    padding: 12px 16px;
    margin: 0;
}

.manage-data-fields-pg .olive-section h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.manage-data-fields-pg .grave-list {
    padding: 12px 16px;
}

.manage-data-fields-pg .add-more-fields-wrap {
    padding: 0 16px;
}


.manage-data-fields-pg .grave-list .Main.field-row {
    margin-bottom: 14px;
}

.manage-data-fields-pg .grave-list .Main.field-row:last-of-type {
    border-bottom: none;
}

.manage-data-fields-pg .grave-list .form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}


/* Single-line field row: [reorder arrows] [textbox] [edit icon] */

.manage-data-fields-pg .form-group.field-row-single {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.manage-data-fields-pg .field-row-reorder {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.manage-data-fields-pg .field-row-reorder .reorder-up,
.manage-data-fields-pg .field-row-reorder .reorder-down {
    color: #617275;
    text-decoration: none;
    display: inline-flex;
}

.manage-data-fields-pg .field-row-reorder .reorder-up:hover,
.manage-data-fields-pg .field-row-reorder .reorder-down:hover {
    color: #607c53;
}

.manage-data-fields-pg .field-row-name {
    flex-shrink: 0;
    min-width: 60px;
    max-width: 60px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
}

.manage-data-fields-pg .field-row-control {
    flex: 1;
    min-width: 0;
}

.manage-data-fields-pg .field-row-control .form-control {
    width: 100%;
}

.manage-data-fields-pg .field-row-edit {
    flex-shrink: 0;
}

.manage-data-fields-pg .field-row-edit a {
    color: #617275;
    text-decoration: none;
}

.manage-data-fields-pg .field-row-edit a:hover {
    color: #607c53;
}

.notes-view-th {
    width: 5.5rem;
}

.notes-view-cell .action-btn.btn-view-notes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 6px;
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    cursor: pointer;
}

.table > tbody .notes-view-cell .action-btn.btn-view-notes svg,
.table > tbody .notes-view-cell .action-btn.btn-view-notes:hover svg {
    color: #16a34a;
    stroke: currentColor;
}

.notes-view-modal-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.manage-data-fields-pg .col-label {
    flex: 0 0 auto;
    min-width: 120px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.manage-data-fields-pg .col-label .reorder-up,
.manage-data-fields-pg .col-label .reorder-down {
    color: #617275;
    text-decoration: none;
    display: inline-flex;
}

.manage-data-fields-pg .col-label .reorder-up:hover,
.manage-data-fields-pg .col-label .reorder-down:hover {
    color: #607c53;
}

.manage-data-fields-pg .col-control {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.manage-data-fields-pg .col-control .form-control {
    flex: 1;
    min-width: 0;
}

.manage-data-fields-pg .edit-delete-icons {
    flex-shrink: 0;
}

.manage-data-fields-pg .edit-delete-icons a {
    color: #617275;
    text-decoration: none;
}

.manage-data-fields-pg .edit-delete-icons a:hover {
    color: #607c53;
}

.manage-data-fields-pg .Update_form {
    margin-top: 6px;
    width: 100%;
}

.manage-data-fields-pg .add-form-field {
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.manage-data-fields-pg .dropdown-options-wrap.is-hidden {
    display: none;
}


/* Notes section: single textarea only */

.manage-data-fields-pg .grave-list-notes {
    padding: 12px 16px;
}

.manage-data-fields-pg .notes-textarea {
    width: 100%;
    min-height: 200px;
    resize: vertical;
}


/* Documents and Images section: file-type rows + Add Field (File Name + checkbox) */

.manage-data-fields-pg .grave-list-doc-img .Main.field-row {
    margin-bottom: 14px;
}

.manage-data-fields-pg .col-label-doc {
    min-width: 140px;
}

.manage-data-fields-pg .col-control-doc {
    min-width: 160px;
}

.manage-data-fields-pg .add-form-field-doc-img .form-group.addfield {
    padding-top: 8px;
}


/* Checkbox area background (Add Field + Edit form) */

.manage-data-fields-pg .add-form-checkboxes-wrap {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
}

.manage-data-fields-pg .edit-form-wrap {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.manage-data-fields-pg .edit-form-checkboxes-wrap {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
}


/* People Add/Update — section headings (Relationship Information, Files, etc.) */
.person-relationship-section {
    margin-top: 0.5rem;
}

.person-section-title,
.person-relationship-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #3d4a3a;
    margin: 1.25rem 0 0.85rem;
    padding: 0 0 0.55rem;
    border-bottom: 2px solid #607c53;
}

#person-relationships-container {
    padding-top: 0.65rem;
}

.person-relationship-rows > .person-relationship-row:first-child {
    margin-top: 0.15rem;
}

@media (max-width: 575.98px) {
    .person-section-title,
    .person-relationship-section-title {
        font-size: 1.05rem;
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }

    #person-relationships-container {
        padding-top: 0.55rem;
    }
}

/* ==== New Css ==== */

.dv-delete-text,
.dv-delete-text p,
.dv-delete-text-strong {
    color: #212529 !important;
}

#resendOTP.btn {
    display: table;
    padding: 10px 20px !important;
    margin: 0 auto;
    text-decoration: none;
    color: white;
}

/* -------------------------------------------------------------------------- */
/* App-wide button typography (admin + auth + error)                          */
/* Single source of truth for Save, Back, Add, Edit, Delete, Cancel, Update, */
/* Submit, Save and Next, Approve, Disapprove, and other text action buttons.*/
/* Colors, padding, width, height, and borders stay as defined elsewhere.    */
/* -------------------------------------------------------------------------- */

:root {
    --admin-btn-font-size: 14px;
    --admin-btn-font-weight: 500;
    --admin-btn-line-height: 1.5;
}

body .btn,
body button.btn,
body a.btn,
body label.btn,
body input[type="submit"].btn,
body input[type="button"].btn,
body input[type="reset"].btn,
body .btn.btn-sm,
body .btn.btn-lg,
body .btn-group > .btn,
body .btn-group-sm > .btn,
body .btn-group-lg > .btn,
body .btn.dv-btn-gradient,
body .btn.setup-save-next-btn,
body .btn.subscription-pay-now-btn,
body .btn.grave-filter-btn,
body .btn.dv-inline-btn,
body .doc-upload-btn,
body .doc-remove-btn,
body .dv-remove-btn,
body .cemetery-overlay-add-btn,
body .auth-login-page .auth-login-btn-signup,
body .error a.btn,
body .add-grave-page > #tableSimple > .widget > .widget-header .btn,
body .widget-card-two .card-bottom-section a.btn,
body .modal .btn,
body .modal-footer .btn,
body table .btn,
body .widget-header .btn,
body .widget-content .btn {
    font-size: var(--admin-btn-font-size);
    font-weight: var(--admin-btn-font-weight);
    line-height: var(--admin-btn-line-height);
}

/* Text/link-styled controls keep surrounding copy scale */
body .btn.btn-link,
body a.btn.btn-link,
body button.btn.btn-link {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: inherit;
}

@media (max-width: 575.98px) {
    body .btn,
    body button.btn,
    body a.btn,
    body label.btn,
    body input[type="submit"].btn,
    body input[type="button"].btn,
    body input[type="reset"].btn,
    body .btn.btn-sm,
    body .btn.btn-lg {
        font-size: var(--admin-btn-font-size);
        font-weight: var(--admin-btn-font-weight);
        line-height: var(--admin-btn-line-height);
    }
}

.widget-header .row{
    align-items: center;
  }

/* User profile dropdown: keep Change Password + Log Out as separate, non-overlapping items */
.navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu {
    max-width: 16rem;
    min-width: 14rem;
    width: max-content;
    height: auto !important;
    overflow: visible !important;
    left: auto !important;
}

.navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item {
    display: block !important;
    float: none !important;
    clear: both;
    position: relative !important;
    width: 100%;
    height: auto !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    line-height: normal !important;
    white-space: normal !important;
    overflow: visible !important;
    z-index: auto !important;
    border-radius: 10px;
    background: #607c53;
}

.navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item:last-child {
    margin-bottom: 0 !important;
}

.navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item a {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 10px 14px !important;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1.3;
    text-decoration: none;
}

.navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 7px;
}

.navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item a span {
    display: inline-block;
    line-height: 1.3;
}

@media (max-width: 575px) {
    .navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu {
        right: 0 !important;
        left: auto !important;
        min-width: 13.5rem;
        max-width: calc(100vw - 24px);
    }
}