/* ============================================================
   Ecohomes — Profil Perusahaan (reference: 10.Profil_Perusahaan.png)
   ============================================================ */

.eh-cp {
	flex: 1; min-width: 0;
	--cp-ink: #1E293B; --cp-muted: #64748B; --cp-faint: #94A3B8;
	--cp-line: #E9EDF3; --cp-bg: #F6F8FB;
	--cp-green: #22C55E; --cp-green-d: #16A34A; --cp-green-t: #E7F8EF;
	--cp-blue: #2563EB; --cp-blue-d: #1D4FD8; --cp-blue-t: #EAF1FE;
	--cp-teal: #0EA5A5; --cp-teal-d: #0B8C8C;
	--cp-amber: #E8821A; --cp-amber-t: #FFF3E6;
	--cp-violet: #6366F1; --cp-violet-t: #EEF0FF;
	--cp-sh: 0 1px 2px rgba(16,24,40,.05);
	color: var(--cp-ink);
	font-size: 14px;
}

/* Widen account content on this page — aligned with the shared My Account layout. */
.woocommerce-account .container:has(.eh-cp) { width: 100% !important; max-width: 1360px !important; }
.woocommerce-account .dashboard-wrap:has(.eh-cp) > [class*="col-"]:first-child { flex: 0 0 19%; max-width: 19%; }
.woocommerce-account .dashboard-wrap:has(.eh-cp) > [class*="col-"]:last-child { flex: 0 0 81%; max-width: 81%; }

/* Reset theme casing/margins inside this view */
.eh-cp h2, .eh-cp h3, .eh-cp label, .eh-cp dt, .eh-cp dd, .eh-cp strong { text-transform: none; letter-spacing: 0; }
.eh-cp input, .eh-cp select, .eh-cp textarea { margin: 0 !important; box-sizing: border-box; }

/* ── Buttons ───────────────────────────────────────────────── */
.eh-cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 9px; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2; transition: all .15s; white-space: nowrap; }
.eh-cp-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }
.eh-cp-btn--primary { background: var(--cp-blue); color: #fff; border-color: var(--cp-blue); }
.eh-cp-btn--primary:hover { background: var(--cp-blue-d); color: #fff; }
.eh-cp-btn--teal { background: var(--cp-teal); color: #fff; border-color: var(--cp-teal); }
.eh-cp-btn--teal:hover { background: var(--cp-teal-d); color: #fff; }
.eh-cp-btn--outline { background: #fff; color: var(--cp-ink); border-color: #D9DFE7; }
.eh-cp-btn--outline:hover { border-color: var(--cp-blue); color: var(--cp-blue); }
.eh-cp-btn--ghost { background: #fff; color: var(--cp-muted); border-color: #E2E7EE; }
.eh-cp-btn--ghost:hover { background: #F4F6F9; color: var(--cp-ink); }
.eh-cp-btn--sm { padding: 7px 14px; font-size: .8rem; }

/* ── Header card ───────────────────────────────────────────── */
.eh-cp-headcard { display: grid; grid-template-columns: auto 1.2fr auto auto; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--cp-line); border-radius: 16px; box-shadow: var(--cp-sh); padding: 20px 24px; margin-bottom: 20px; }
.eh-cp-head-logo { width: 88px; height: 88px; border-radius: 14px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--cp-line); display: flex; align-items: center; justify-content: center; background: #0F2547; }
.eh-cp-head-logo img { width: 100%; height: 100%; object-fit: cover; }
.eh-cp-logo-fallback { color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; }

.eh-cp-head-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.eh-cp-company { font-size: 1.4rem; font-weight: 800; margin: 0; color: var(--cp-ink); }
.eh-cp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.eh-cp-badge .dashicons { font-size: 14px; width: 14px; height: 14px; }
.eh-cp-badge--verified { background: var(--cp-green-t); color: var(--cp-green-d); }
.eh-cp-badge--pending { background: var(--cp-amber-t); color: var(--cp-amber); }

.eh-cp-head-meta { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 36px; margin: 0; }
.eh-cp-head-meta div { min-width: 0; }
.eh-cp-head-meta dt { font-size: .72rem; color: var(--cp-faint); margin: 0 0 3px; }
.eh-cp-head-meta dd { margin: 0; font-size: .85rem; font-weight: 600; color: var(--cp-ink); }
.eh-cp-head-meta dd.eh-cp-ok { color: var(--cp-green-d); }
.eh-cp-pill { display: inline-block; background: var(--cp-blue-t); color: var(--cp-blue-d); padding: 2px 10px; border-radius: 999px; font-size: .76rem !important; font-weight: 700; }

.eh-cp-head-contact { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; border-left: 1px solid var(--cp-line); }
.eh-cp-head-contact a { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--cp-muted); text-decoration: none; }
.eh-cp-head-contact a:hover { color: var(--cp-blue); }
.eh-cp-head-contact .dashicons { font-size: 16px; width: 16px; height: 16px; color: var(--cp-faint); }

/* ── Grid layout ───────────────────────────────────────────── */
/* Two form columns (row 1) + a full-width "Jenis Akun" box (row 2) on the left,
   with the verification sidebar spanning both rows on the right. */
.eh-cp-grid { display: grid; grid-template-columns: 1fr 1fr 326px; gap: 20px; align-items: start; }
.eh-cp-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.eh-cp-grid > .eh-cp-col:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.eh-cp-grid > .eh-cp-col:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.eh-cp-jenisakun { grid-column: 1 / 3; grid-row: 2; }
.eh-cp-side { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ── Cards ─────────────────────────────────────────────────── */
.eh-cp-card { background: #fff; border: 1px solid var(--cp-line); border-radius: 14px; box-shadow: var(--cp-sh); padding: 20px; }
.eh-cp-card-title { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 700; color: var(--cp-ink); margin: 0 0 16px; }
.eh-cp-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: var(--cp-blue-t); color: var(--cp-blue-d); font-size: .8rem; font-weight: 800; flex-shrink: 0; }
.eh-cp-card-title--plain { margin-bottom: 14px; }
.eh-cp-card-sub { font-size: .8rem; color: var(--cp-muted); margin: -8px 0 16px; }

/* ── Fields ────────────────────────────────────────────────── */
.eh-cp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.eh-cp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; grid-column: 1 / -1; position: relative; }
.eh-cp-field--half { grid-column: span 1; }
.eh-cp-field label { font-size: .76rem; font-weight: 600; color: var(--cp-muted); }
.eh-cp-req { color: #EF4444; }
.eh-cp-field input,
.eh-cp-field select,
.eh-cp-field textarea {
	width: 100%; height: 42px; padding: 0 12px; border: 1px solid #DCE2EA; border-radius: 9px;
	font-size: .85rem; color: var(--cp-ink); background: #fff; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.eh-cp-field textarea { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.eh-cp-field input:focus,
.eh-cp-field select:focus,
.eh-cp-field textarea:focus { outline: none; border-color: var(--cp-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.eh-cp-field input::placeholder, .eh-cp-field textarea::placeholder { color: #AAB4C0; }
.eh-cp-select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.eh-cp-charcount { position: absolute; right: 2px; bottom: -18px; font-size: .7rem; color: var(--cp-faint); }
.eh-cp-labelrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eh-cp-field--readonly .eh-cp-readbox { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--cp-line); border-radius: 9px; background: #F8FAFC; font-size: .82rem; font-weight: 600; color: var(--cp-ink); }
.eh-cp-reverify-msg { font-size: .76rem; font-weight: 600; }
.eh-cp-reverify-msg.is-ok { color: var(--cp-green-d); }
.eh-cp-reverify-msg.is-err { color: #DC2626; }

/* ── Note / callouts ───────────────────────────────────────── */
.eh-cp-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 10px 12px; background: var(--cp-blue-t); border-radius: 9px; font-size: .76rem; color: #3358A8; line-height: 1.4; }
.eh-cp-note .dashicons { font-size: 15px; width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

.eh-cp-callout { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 12px; font-size: .8rem; line-height: 1.45; }
.eh-cp-callout p { margin: 0; }
.eh-cp-callout > .dashicons { font-size: 18px; width: 18px; height: 18px; flex-shrink: 0; }
.eh-cp-callout--success { background: var(--cp-green-t); color: var(--cp-green-d); flex-direction: row; align-items: center; }
.eh-cp-callout--info { background: var(--cp-blue-t); color: #3358A8; flex-direction: row; align-items: center; }
.eh-cp-callout--note { background: var(--cp-violet-t); color: #4A4ED1; border: 1px solid #E0E2FB; }
.eh-cp-callout--note .eh-cp-btn { margin-top: 4px; border-color: #C9CCF7; color: #4A4ED1; background: #fff; }

/* ── Account type cards ────────────────────────────────────── */
.eh-cp-typecards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eh-cp-typecards--2col { grid-template-columns: 1fr 1fr; }
.eh-cp-typecard { position: relative !important; display: flex; align-items: flex-start; gap: 11px; padding: 14px 38px 14px 14px; border: 1.5px solid #E2E7EE; border-radius: 12px; cursor: pointer; transition: all .15s; background: #fff; }
.eh-cp-typecard input { display: none !important; }
/* The theme injects a custom toggle/checkbox UI via label ::before/::after on labels
   that wrap a control — suppress it on our radio cards. */
.eh-cp-typecard::before, .eh-cp-typecard::after,
.eh-cp-typecard span::before, .eh-cp-typecard span::after { content: none !important; display: none !important; }
.eh-cp-typecard-ico { width: 38px; height: 38px; border-radius: 10px; background: #F1F5F9; color: var(--cp-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
.eh-cp-typecard-ico svg { width: 20px; height: 20px; display: block; }
.eh-cp-typecard-body { display: flex; flex-direction: column; gap: 2px; }
.eh-cp-typecard-body strong { font-size: .85rem; color: var(--cp-ink); }
.eh-cp-typecard-body small { font-size: .72rem; color: var(--cp-muted); line-height: 1.35; }
.eh-cp-typecard-check { position: absolute !important; top: 12px; right: 12px; width: 20px !important; height: 20px !important; border-radius: 50%; background: var(--cp-blue); color: #fff; display: none !important; align-items: center; justify-content: center; }
.eh-cp-typecard-check svg { width: 12px; height: 12px; display: block; }
.eh-cp-typecard.is-active { border-color: var(--cp-blue); background: var(--cp-blue-t); }
.eh-cp-typecard.is-active .eh-cp-typecard-ico { background: var(--cp-blue); color: #fff; }
.eh-cp-typecard.is-active .eh-cp-typecard-check { display: inline-flex !important; }

/* ── Project addresses ─────────────────────────────────────── */
.eh-cp-projlist { display: flex; flex-direction: column; gap: 10px; }
.eh-cp-projrow { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--cp-line); border-radius: 11px; background: #FBFCFE; }
.eh-cp-projrow[hidden] { display: none; }
.eh-cp-projrow-pin { font-size: 18px; width: 18px; height: 18px; color: var(--cp-green); margin-top: 8px; flex-shrink: 0; }
.eh-cp-projrow-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eh-cp-projrow-fields input, .eh-cp-projrow-fields textarea { width: 100%; border: 1px solid #DCE2EA; border-radius: 8px; font-size: .82rem; color: var(--cp-ink); background: #fff; font-family: inherit; box-sizing: border-box; }
.eh-cp-projrow-label { height: 38px; padding: 0 11px; font-weight: 600; }
.eh-cp-projrow-addr { padding: 9px 11px; min-height: 40px; resize: vertical; line-height: 1.45; }
.eh-cp-projrow-fields input:focus, .eh-cp-projrow-fields textarea:focus { outline: none; border-color: var(--cp-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.eh-cp-projrow-del { flex-shrink: 0; width: 32px; height: 32px; border: none; background: none; color: var(--cp-faint); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.eh-cp-projrow-del:hover { background: #FDECEC; color: #DC2626; }
.eh-cp-projrow-del .dashicons { font-size: 16px; width: 16px; height: 16px; }

.eh-cp-proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.eh-cp-addrow { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px dashed #C7D0DB; border-radius: 9px; background: #fff; color: var(--cp-blue-d); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.eh-cp-addrow:hover { border-color: var(--cp-blue); background: var(--cp-blue-t); }
.eh-cp-addrow .dashicons { font-size: 15px; width: 15px; height: 15px; }

.eh-cp-pager { display: inline-flex; align-items: center; gap: 8px; }
.eh-cp-pager[hidden] { display: none; }
.eh-cp-pager-info { font-size: .76rem; color: var(--cp-muted); min-width: 38px; text-align: center; }
.eh-cp-pager-btn { width: 30px; height: 30px; border: 1px solid var(--cp-line); border-radius: 8px; background: #fff; color: var(--cp-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.eh-cp-pager-btn:hover:not(:disabled) { border-color: var(--cp-blue); color: var(--cp-blue); }
.eh-cp-pager-btn:disabled { opacity: .4; cursor: default; }
.eh-cp-pager-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* ── Document field ────────────────────────────────────────── */
.eh-cp-doc { margin-top: 16px; }
.eh-cp-doc-label { display: block; font-size: .76rem; font-weight: 600; color: var(--cp-muted); margin-bottom: 8px; }
.eh-cp-doc-file { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--cp-line); border-radius: 10px; background: #FBFCFE; }
.eh-cp-doc-ico { font-size: 22px; width: 22px; height: 22px; color: #DC2626; flex-shrink: 0; }
.eh-cp-doc-name { flex: 1; font-size: .82rem; font-weight: 600; color: var(--cp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eh-cp-doc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.eh-cp-doc-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border: 1px solid #D9DFE7; border-radius: 8px; background: #fff; color: var(--cp-blue-d); font-size: .76rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.eh-cp-doc-btn:hover { border-color: var(--cp-blue); }
.eh-cp-doc-btn--ghost { color: var(--cp-muted); }
.eh-cp-doc-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }
.eh-cp-doc-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border: 1.5px dashed #C7D0DB; border-radius: 11px; background: #FBFCFE; color: var(--cp-muted); cursor: pointer; text-align: center; transition: all .15s; }
.eh-cp-doc-drop:hover { border-color: var(--cp-blue); background: var(--cp-blue-t); color: var(--cp-blue-d); }
.eh-cp-doc-drop .dashicons { font-size: 26px; width: 26px; height: 26px; }
.eh-cp-doc-drop-text { font-size: .78rem; }
.eh-cp-doc-btn--icon { padding: 6px; width: 30px; height: 30px; justify-content: center; }
.eh-cp-doc-btn--icon .dashicons { margin: 0; }
.eh-cp-doc-btn--danger { color: #DC2626; border-color: #F1C6C6; }
.eh-cp-doc-btn--danger:hover { border-color: #DC2626; background: #FEF2F2; }
.eh-cp-doc-btn--danger.is-active { background: #DC2626; border-color: #DC2626; color: #fff; }
.eh-cp-doc-file.is-removing { opacity: .6; }
.eh-cp-doc-file.is-removing .eh-cp-doc-name { text-decoration: line-through; }
.eh-cp-doc-hint { display: block; margin-top: 6px; font-size: .72rem; color: var(--cp-muted); }
.eh-cp-doc-subhead { margin: 18px 0 4px; font-size: .82rem; font-weight: 700; color: var(--cp-ink); }
.eh-cp-doc-uploading { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--cp-line); border-radius: 10px; background: var(--cp-blue-t); color: var(--cp-blue-d); font-size: .82rem; font-weight: 600; }
.eh-cp-doc-uploading .eh-cp-doc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eh-cp-doc-drop.is-error { border-color: #DC2626; color: #DC2626; background: #FEF2F2; }
.eh-cp-spin { animation: eh-cp-spin .8s linear infinite; }
@keyframes eh-cp-spin { to { transform: rotate(360deg); } }

/* ── Sidebar summary ───────────────────────────────────────── */
.eh-cp-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.eh-cp-checkrow { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #F1F4F8; }
.eh-cp-checkrow:last-child { border-bottom: none; }
.eh-cp-check-ico { font-size: 18px; width: 18px; height: 18px; color: #CBD5E1; flex-shrink: 0; }
.eh-cp-checkrow.is-done .eh-cp-check-ico { color: var(--cp-green); }
.eh-cp-check-label { font-size: .83rem; font-weight: 600; color: var(--cp-ink); }
.eh-cp-checkrow:not(.is-done) .eh-cp-check-label { color: var(--cp-muted); font-weight: 500; }

.eh-cp-docstatus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.eh-cp-docstatus li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #F1F4F8; }
.eh-cp-docstatus li:last-child { border-bottom: none; }
.eh-cp-docstatus-label { font-size: .82rem; color: var(--cp-muted); }
.eh-cp-docstatus-val { font-size: .82rem; font-weight: 600; color: var(--cp-ink); }
.eh-cp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.eh-cp-tag .dashicons { font-size: 13px; width: 13px; height: 13px; }
.eh-cp-tag--ok { background: var(--cp-green-t); color: var(--cp-green-d); }
.eh-cp-tag--wait { background: #FFF8E8; color: #B7791F; }

/* ── Footer ────────────────────────────────────────────────── */
.eh-cp-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--cp-line); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1180px) {
	.eh-cp-grid { grid-template-columns: 1fr 1fr; }
	.eh-cp-grid > .eh-cp-col:nth-of-type(1),
	.eh-cp-grid > .eh-cp-col:nth-of-type(2),
	.eh-cp-jenisakun { grid-column: auto; grid-row: auto; }
	.eh-cp-jenisakun { grid-column: 1 / -1; }
	.eh-cp-side { grid-column: 1 / -1; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
	.eh-cp-side > * { flex: 1 1 280px; }
}
@media (max-width: 1024px) {
	.eh-cp-headcard { grid-template-columns: auto 1fr; row-gap: 18px; }
	.eh-cp-head-contact { grid-column: 1 / -1; padding-left: 0; border-left: none; border-top: 1px solid var(--cp-line); padding-top: 14px; flex-direction: row; flex-wrap: wrap; gap: 16px; }
	.eh-cp-head-actions { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	.woocommerce-account .dashboard-wrap:has(.eh-cp) > [class*="col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
	.eh-cp-grid { grid-template-columns: 1fr; }
	.eh-cp-grid > .eh-cp-col:nth-of-type(1),
	.eh-cp-grid > .eh-cp-col:nth-of-type(2),
	.eh-cp-jenisakun, .eh-cp-side { grid-column: 1 / -1; grid-row: auto; }
	.eh-cp-side { flex-direction: column; }
	.eh-cp-head-meta { grid-template-columns: 1fr 1fr; }
	.eh-cp-typecards, .eh-cp-typecards--2col { grid-template-columns: 1fr; }
	.eh-cp-footer { flex-wrap: wrap; }
	.eh-cp-footer .eh-cp-btn { flex: 1; }
}
