/* Pittago application typography: keep every UI surface on one family. */
body,
h1, h2, h3, h4, h5, h6,
p, a, small, label,
button, input, select, textarea,
.btn, .form-control, .form-select, .form-check-label,
.card-title, .logo span,
.table, .table th, .table td,
.alert, .badge, .dropdown-item, .nav-link {
  font-family: "Poppins", sans-serif;
}

.profile-editor-main { padding-bottom: 32px; }
.profile-editor { background: #f8fbff; border: 1px solid #dce8f6; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px rgba(30, 75, 130, .07); }
.profile-editor-header { min-height: 78px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, #edf7ff, #fffaf0); border-bottom: 1px solid #dce8f6; }
.profile-editor-header h1 { color: #0c448d; font-size: 25px; font-weight: 600; margin: 0; }
.profile-editor-header p { color: #6d7d91; font-size: 13px; margin: 3px 0 0; }
.profile-close { color: #7b7b7b; font-size: 18px; padding: 8px; }
.profile-editor-body { padding: 28px 24px 10px; }
.profile-section { margin-bottom: 34px; }
.profile-section h2 { display: flex; align-items: center; gap: 14px; color: #003b82; font-size: 18px; font-weight: 600; letter-spacing: .2px; margin: 0 0 22px; text-transform: uppercase; }
.profile-section h2 span { width: 11px; height: 32px; border-radius: 8px; background: #4454ff; display: inline-block; }
.profile-section .form-label { color: #253650; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.profile-section .form-control, .profile-section .form-select, .profile-section .input-group .btn { min-height: 54px; border-color: #cfe0f2; border-radius: 14px; background-color: #fff; font-size: 16px; }
.profile-section .form-control:focus, .profile-section .form-select:focus { border-color: #4a69ff; box-shadow: 0 0 0 .2rem rgba(74, 105, 255, .12); }
.profile-section .form-control[readonly] { background: #eef4fa; color: #65758a; }
.profile-section .input-group .form-control { border-radius: 14px 0 0 14px; }
.profile-section .input-group .btn { min-width: 52px; border-radius: 0 14px 14px 0; }
.profile-photo-control { min-height: 76px; display: flex; align-items: center; gap: 13px; }
.profile-photo-control img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid #e0eaff; }
.profile-photo-control strong, .profile-photo-control small { display: block; }
.profile-photo-control small, .section-note { color: #748297; font-size: 12px; }
.profile-editor-actions { position: sticky; bottom: 0; z-index: 5; padding: 16px 24px; display: flex; justify-content: flex-end; gap: 10px; background: rgba(255,255,255,.96); border-top: 1px solid #dce8f6; backdrop-filter: blur(8px); }
.profile-editor-actions .btn { border: 0; border-radius: 14px; font-size: 16px; font-weight: 600; min-width: 120px; padding: 12px 20px; }
.profile-editor-actions .btn-primary { background: #1266db; }
@media (max-width: 767px) {
  .profile-editor-header, .profile-editor-body, .profile-editor-actions { padding-left: 16px; padding-right: 16px; }
  .profile-editor-header p { display: none; }
  .profile-section h2 { font-size: 15px; }
}

.technical-register-wrap { max-width: 1240px; }
.technical-register-card { border: 1px solid #d9e6f5; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 35px rgba(28, 69, 120, .1); }
.technical-register-heading { padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, #edf7ff, #fffaf0); border-bottom: 1px solid #d9e6f5; }
.technical-register-heading h4 { color: #0b458e; font-weight: 600; margin: 0 0 4px; }
.technical-register-heading p { color: #718096; font-size: 13px; }
.technical-register-heading .badge { color: #fff; background: #1266db; border-radius: 10px; padding: 9px 13px; }
.technical-stepper { padding: 24px 28px 8px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.technical-stepper::before { content: ""; position: absolute; left: 17%; right: 17%; top: 41px; height: 2px; background: #dce5f1; }
.technical-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #8b98aa; }
.technical-step span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e8eef6; border: 3px solid #fff; font-weight: 600; }
.technical-step.active { color: #0755b5; }
.technical-step.active span { color: #fff; background: #4454ff; }
.technical-step small { font-weight: 600; }
.technical-form-body { padding: 24px 28px 32px; }
.technical-section-title { display: flex; align-items: center; gap: 13px; color: #063e82; font-size: 17px; font-weight: 600; text-transform: uppercase; margin: 0 0 22px; }
.technical-section-title span { width: 10px; height: 30px; border-radius: 8px; background: #4454ff; }
.technical-step-form .form-label { color: #253650; font-weight: 600; font-size: 14px; }
.technical-step-form .form-control, .technical-step-form .form-select, .technical-step-form .input-group .btn { min-height: 52px; border-color: #cfdeef; border-radius: 13px; }
.technical-step-form .input-group .form-control { border-radius: 13px 0 0 13px; }
.technical-step-form .input-group .btn { border-radius: 0 13px 13px 0; }
.technical-form-actions { padding: 15px 28px; border-top: 1px solid #d9e6f5; display: flex; justify-content: flex-end; gap: 10px; background: #fff; }
.technical-form-actions .btn { min-width: 120px; border-radius: 12px; padding: 11px 18px; font-weight: 600; }
.technical-document-preview-wrap { width: min(100%, 560px); margin: 0 auto; padding: 12px; border: 1px solid #d6e3f2; border-radius: 14px; background: #f7faff; }
.technical-document-preview-label { display: block; margin-bottom: 8px; color: #52657d; font-size: 13px; font-weight: 600; text-align: left; }
.technical-document-preview { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: 9px; background: #fff; }
.service-area-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 260px; overflow-y: auto; padding: 6px; border: 1px solid #cfe0f2; border-radius: 12px; background: #fff; box-shadow: 0 14px 30px rgba(28, 69, 120, .16); }
.service-area-result { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #253650; text-align: left; }
.service-area-result:hover, .service-area-result:focus { background: #eef6ff; outline: 0; }
.service-area-result strong, .service-area-result small { display: block; }
.service-area-result small { color: #6e7f94; font-size: 12px; margin-top: 2px; }
.service-area-selected .badge { max-width: 100%; white-space: normal; text-align: left; line-height: 1.35; }
.service-area-selected .btn-close { width: .65em; height: .65em; vertical-align: middle; }
@media (max-width: 576px) {
  .technical-register-heading, .technical-form-body, .technical-form-actions { padding-left: 16px; padding-right: 16px; }
  .technical-register-heading p, .technical-step small { display: none; }
}

/* Tile ERP production screens */
.main { background: #f4f7fb; min-height: calc(100vh - 60px); }
.pagetitle h1 { color: #002d73; font-weight: 700; }
.breadcrumb { font-weight: 600; }
.card { border: 0; border-radius: 8px; box-shadow: 0 8px 24px rgba(25, 55, 95, .07); }
.card-title { color: #002d73; font-weight: 700; }
.table { margin-bottom: 0; }
.table thead th { color: #526b91; font-size: 12px; font-weight: 700; text-transform: uppercase; white-space: nowrap; background: #f7f9fd; border-bottom: 1px solid #dfe7f3; }
.table tbody td { color: #1f2f46; vertical-align: middle; }
.table-hover tbody tr:hover { background: #f6faff; }
.btn { border-radius: 6px; font-weight: 600; }
.btn-sm { min-width: 34px; min-height: 32px; display: inline-grid; place-items: center; }
.btn-primary { background: #1769f7; border-color: #1769f7; }
.btn-outline-primary { color: #0d52c5; border-color: #9bbcf5; }
.btn-outline-primary:hover { background: #1769f7; border-color: #1769f7; }
.badge { border-radius: 6px; padding: 7px 9px; }
.form-control, .form-select { min-height: 42px; border-color: #ced9eb; border-radius: 6px; }
.form-control:focus, .form-select:focus { border-color: #1769f7; box-shadow: 0 0 0 .18rem rgba(23, 105, 247, .12); }
.alert { border-radius: 7px; }
.list-group-item.active { background: #1769f7; border-color: #1769f7; }
.sidebar-nav .nav-link { min-height: 44px; }
.sidebar-nav .nav-link span { white-space: normal; line-height: 1.25; }
body.ajax-loading #main { opacity: .62; pointer-events: none; transition: opacity .15s ease; }
@media print {
  body { background: #fff; }
  #header, #sidebar, #footer, .back-to-top, .breadcrumb, .erp-head-actions { display: none !important; }
  #main.main { margin: 0 !important; padding: 0 !important; background: #fff; min-height: auto; }
  .erp-panel { border: 0; box-shadow: none; padding: 0; }
  .erp-page-head { margin-bottom: 12px; }
  .erp-detail-item { break-inside: avoid; }
}
@media (max-width: 767px) {
  .pagetitle.d-flex { flex-direction: column; }
  .pagetitle .btn { width: 100%; }
  .table-responsive { border: 1px solid #e5ebf5; border-radius: 8px; }
}

.erp-screen .breadcrumb { margin-bottom: 0; }
.erp-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.erp-page-head h1 { margin-bottom: 6px; font-size: 25px; }
.erp-head-actions { display: flex; gap: 8px; }
.erp-primary-action { min-height: 42px; display: inline-flex; align-items: center; }
.erp-panel { padding: 20px; border: 1px solid #dfe7f3; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(25, 55, 95, .07); }
.erp-panel-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #edf1f7; }
.erp-panel-head h2 { margin: 0; color: #002d73; font-size: 18px; font-weight: 700; }
.erp-panel-head p { margin: 3px 0 0; color: #66768f; font-size: 13px; }
.erp-module-mark { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 8px; color: #0d52c5; background: #eef5ff; }
.erp-module-mark i { font-size: 22px; }
.erp-toolbar { margin-bottom: 14px; }
.erp-search { display: flex; align-items: center; gap: 8px; max-width: 720px; }
.erp-search i { margin-right: -38px; z-index: 1; color: #7a8aa4; }
.erp-search .form-control { padding-left: 38px; }
.erp-table-wrap { border: 1px solid #e4ebf5; border-radius: 8px; }
.erp-table thead th { padding: 12px 14px; }
.erp-table tbody td { padding: 13px 14px; }
.erp-actions { white-space: nowrap; }
.erp-actions .btn { margin-left: 4px; }
.erp-form-panel { display: block; }
.erp-form-grid .form-label { color: #263954; font-size: 13px; font-weight: 700; }
.erp-form-grid .form-control, .erp-form-grid .form-select { min-height: 46px; }
.erp-form-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; margin-top: 22px; border-top: 1px solid #edf1f7; background: rgba(255, 255, 255, .96); }
.erp-form-actions .btn { min-width: 108px; }
.erp-detail-item { min-height: 86px; padding: 15px; border: 1px solid #e2e9f4; border-radius: 8px; background: #fbfcff; }
.erp-detail-item span { display: block; margin-bottom: 7px; color: #6a7b94; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.erp-detail-item strong { display: block; color: #1f2f46; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.erp-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; color: #6a7b94; font-size: 13px; font-weight: 600; }
.erp-line-items { margin-top: 22px; }
.erp-line-items-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.erp-line-items-head h3 { margin: 0; color: #002d73; font-size: 16px; font-weight: 700; }
.erp-line-table-wrap { border: 1px solid #e4ebf5; border-radius: 8px; }
.erp-line-table th, .erp-line-table td { min-width: 120px; }
.erp-line-table th:first-child, .erp-line-table td:first-child { min-width: 190px; }
@media (max-width: 767px) {
  .erp-page-head, .erp-head-actions, .erp-search { flex-direction: column; align-items: stretch; }
  .erp-head-actions .btn, .erp-search .btn, .erp-primary-action { width: 100%; justify-content: center; }
  .erp-search i { display: none; }
  .erp-search .form-control { padding-left: 12px; }
  .erp-panel { padding: 14px; }
  .erp-panel-head { align-items: flex-start; }
  .erp-panel-head p { display: none; }
  .erp-table tbody td, .erp-table thead th { padding: 11px 12px; }
  .erp-pagination, .erp-line-items-head { flex-direction: column; align-items: stretch; }
}
