
/* eFarming V2 · Form language system. Styles only; transaction validations are unchanged. */
#role-dialog:has(.ef-registration-wizard){--uix-text:#153953;--uix-muted:#71899a;--uix-line:#dde8ee;--uix-green:#0c8851;--uix-blue:#176c9f}
#role-dialog:has(.ef-registration-wizard) .ef-registration-section{border-color:var(--uix-line)!important;border-radius:16px!important;box-shadow:0 3px 14px #214a5c08!important}
#role-dialog:has(.ef-registration-wizard) .ef-registration-section-head{gap:11px!important;margin-bottom:15px!important}
#role-dialog:has(.ef-registration-wizard) .ef-registration-section-head h3{font-size:17px!important;color:var(--uix-text)!important;letter-spacing:-.025em!important}
#role-dialog:has(.ef-registration-wizard) .ef-registration-section-head p{font-size:11px!important;line-height:1.5!important;color:var(--uix-muted)!important}
#role-dialog:has(.ef-registration-wizard) :is(input,select,textarea):focus-visible{outline:2px solid #54b68a!important;outline-offset:2px!important}
#role-dialog:has(.ef-registration-wizard) :is(input,select,textarea):disabled{opacity:.65;cursor:not-allowed}

/* Step 2 — compact, structured, no superfluous heavy boxes. */
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan{padding:18px 20px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;background:transparent!important;border:0!important;border-radius:0!important;margin:0 0 15px!important;overflow:visible!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar>div{padding:11px 14px!important;background:#f2f9f6!important;border:1px solid #dbece2!important;border-radius:11px!important;gap:4px!important;min-height:55px!important;display:flex!important;flex-direction:column;justify-content:center}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar>div+div{border-left:1px solid #dbece2!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar small{font-size:9px!important;font-weight:800!important;letter-spacing:.065em!important;color:#56816c!important;text-transform:uppercase}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar strong{font-size:15px!important;line-height:1.25!important;font-weight:820!important;color:#184253!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form{gap:0 9px!important;align-items:stretch!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-step2-default-heading{padding:13px 15px 10px!important;background:#f6fafc!important;border:1px solid #e1eaf0!important;border-bottom:0!important;border-radius:12px 12px 0 0!important;min-width:0!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-step2-default-heading strong{font-size:13px!important;letter-spacing:-.005em!important;color:#183d54!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-step2-default-heading p{font-size:10px!important;color:#758b98!important;margin-top:3px!important;line-height:1.5!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-default-chip{font-size:10px!important;font-weight:700!important;padding:6px 9px!important;background:#e8f5ee!important;border-radius:999px!important;color:#157e4c!important;white-space:normal!important;text-align:center!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=plantingPeriod]),
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=variety]),
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=cropCategory]),
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=typology]),
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>.ef-master-field{
  min-width:0!important;padding:8px 10px 13px!important;background:#f6fafc!important;border-top:0!important;border-bottom:1px solid #e1eaf0!important;border-left:0!important;border-right:0!important;border-radius:0!important;box-sizing:border-box!important;line-height:1.6!important;font-size:11px!important;color:#315c70!important;font-weight:700!important
}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=plantingPeriod]),
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>.ef-master-field:first-of-type{border-left:1px solid #e1eaf0!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=typology]),
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>.ef-master-field:last-of-type{border-right:1px solid #e1eaf0!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form :is(label, .ef-master-field)>select,
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>.ef-master-field select{font-size:12px!important;height:40px!important;min-height:40px!important;border-radius:9px!important;padding:8px 10px!important;background:#fff!important;border:1px solid #d5e2e9!important;width:100%!important;min-width:0!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>.ef-master-field>label{font-size:11px!important;font-weight:700!important;color:#315c70!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-picker]{margin:17px 0 0!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-picker-v3>.ef-ml-head strong{font-size:15px!important;color:#183d54!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-overview{padding:9px 11px!important;border:1px solid #e2eaf0!important;background:#f8fbfd!important;border-radius:10px!important;margin:10px 0 10px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-summary{column-gap:14px!important;row-gap:5px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-summary span strong{font-size:13px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-panel]{background:#0d8a52!important;color:#fff!important;border-color:#0d8a52!important;box-shadow:0 2px 7px #17865718!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-panel]:hover{background:#087447!important;color:#fff!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-import]{background:#fff!important;border-color:#cfdfe7!important;color:#385c72!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-picked-shell:has([data-ml-selected]>.ef-ml-option) .ef-ml-picked-head{display:flex!important;align-items:center!important;padding:9px 2px 10px!important;border:0!important;margin:0!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-picked-head strong{font-size:12px!important;color:#24465d!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected]{max-height:410px!important;gap:7px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected]>.ef-ml-option{padding-top:11px!important;padding-bottom:11px!important;border-radius:11px!important;border-color:#dce7ed!important;box-shadow:0 2px 7px #1a456506!important;transition:border-color .16s ease,box-shadow .16s ease}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected]>.ef-ml-option:first-child{background:#f5fbf7!important;border-color:#b9dfcb!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected]>.ef-ml-option:hover{border-color:#9acbb1!important;box-shadow:0 4px 12px #125a3c10!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected] .ef-ml-preview{background:#eef8f1!important;border-radius:8px!important;padding:8px 11px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected] .ef-ml-preview small{color:#638573!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-overrides]{border-color:#cfe8d9!important;background:#f8fcfa!important;border-radius:10px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-catalog{background:#f7fafc!important;border-color:#d9e6ed!important;border-radius:13px!important;padding:14px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-search-toolbar{gap:10px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-options] .ef-ml-option:hover{border-color:#9ac9b0!important;background:#f8fcfa!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-pager button{border-radius:8px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ft-gpx-panel{border-radius:12px!important;margin-top:17px!important}

/* Step 1 and Verification — same typography, soft boundaries and control geometry. */
#role-dialog:has(.ef-registration-wizard) #ef-reg-mitra :is(.ef-compact-step1-meta, .ef-compact-notes, .ef-step1-applicant){border-color:#dce7ed!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-mitra .ef-compact-step1-meta select{border-radius:9px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-mitra .ef-compact-notes textarea{min-height:72px!important;border-radius:10px!important;font-size:12px!important;line-height:1.6!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-tanam .ef-verify-card{border-radius:14px!important;background:#fff!important;border-color:#dce7ed!important;box-shadow:0 3px 10px #1d465a06!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-tanam .ef-verify-card-title{padding-bottom:11px!important;margin-bottom:12px!important}
#role-dialog:has(.ef-registration-wizard) #ef-reg-tanam .ef-doc-land{border-radius:11px!important;background:#fcfefe!important}
#role-dialog:has(.ef-registration-wizard) .ef-wizard-footer button{border-radius:10px!important}

/* Other transactional modals — align input rhythm with Menu Permohonan.
   Excludes the registration wizard, print dialogs and read-only detail popups. */
#role-dialog:not(:has(.ef-registration-wizard)):not(.contract-print-dialog):not(:has(.ef-ml-detail-v3)) form[data-form] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea){max-width:100%;box-sizing:border-box;border-radius:10px;border:1px solid #d5e3ea;background:#fff;color:#22475c;font-size:13px;min-height:41px;transition:border-color .14s,box-shadow .14s}
#role-dialog:not(:has(.ef-registration-wizard)):not(.contract-print-dialog):not(:has(.ef-ml-detail-v3)) form[data-form] :is(input,select,textarea):focus-visible{outline:2px solid #62b78f;outline-offset:2px}
#role-dialog:not(:has(.ef-registration-wizard)):not(.contract-print-dialog):not(:has(.ef-ml-detail-v3)) form[data-form] textarea{min-height:74px;line-height:1.5;resize:vertical}
#role-dialog:not(:has(.ef-registration-wizard)):not(.contract-print-dialog):not(:has(.ef-ml-detail-v3)) form[data-form]>label{color:#31556c;font-weight:700;font-size:12px;line-height:1.5}
#role-dialog:not(:has(.ef-registration-wizard)):not(.contract-print-dialog):not(:has(.ef-ml-detail-v3)) form[data-form] .ef-actions{gap:8px;flex-wrap:wrap}
#role-dialog:not(:has(.ef-registration-wizard)):not(.contract-print-dialog):not(:has(.ef-ml-detail-v3)) form[data-form] .ef-actions :is(button,.ef-act){border-radius:10px;min-height:39px}

@media(max-width:700px){
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan{padding:14px 12px!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar{gap:6px!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar>div{padding:9px 10px!important;min-height:56px!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar small{font-size:8px!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar strong{font-size:12px!important;overflow-wrap:anywhere}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-step2-default-heading{padding:11px 12px!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-default-chip{display:none!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=plantingPeriod]),
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=variety]),
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=cropCategory]),
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>label:has([name=typology]),
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan>.ef-step2-form>.ef-master-field{padding:9px!important;border:1px solid #e2eaf0!important;border-top:0!important;border-radius:0!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-overview{align-items:stretch!important;gap:9px!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-overview-actions{width:100%!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-picked-shell:has([data-ml-selected]>.ef-ml-option) .ef-ml-picked-head{flex-wrap:wrap!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-options-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-ml-catalog{padding:10px!important}
}
@media(max-width:390px){
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar>div:last-child{grid-column:1/-1!important;min-height:42px!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan .ef-compact-area-bar>div:last-child strong{font-size:13px!important}
}
@media(max-width:700px){
 /* Put selected ID, actions, and crop-override preview in separate rows: no clipping. */
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected]>.ef-ml-option{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;gap:7px!important;padding:12px 10px 11px 42px!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected] .ef-ml-row-body{grid-column:1/-1!important;grid-row:1!important;min-width:0!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected] .ef-ml-row-actions{grid-column:1/-1!important;grid-row:2!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:7px!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected] .ef-ml-preview{grid-column:1/-1!important;grid-row:3!important;width:100%!important;max-width:100%!important;min-height:0!important;margin:0!important;padding:7px 9px!important;align-items:flex-start!important;overflow:visible!important}
 #role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected] [data-ml-overrides]{grid-column:1/-1!important;grid-row:4!important;margin:0!important}
}
@media(prefers-reduced-motion:reduce){#role-dialog:has(.ef-registration-wizard) #ef-reg-lahan [data-ml-selected]>.ef-ml-option{transition:none}}
