﻿/* Eka Consultancy - Admin Panel
   Navy: #1D3048 | Dark navy: #142C47 | Orange: #EF7C39 */

/* ---------- 1. Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --primary: #1D3048; --navy: #142C47; --orange: #EF7C39; --border: #E5EAF1; --muted: #8695AC; }
body { font-family: "Inter", Arial, sans-serif; font-size: 14px; color: var(--primary); background: #F6F7F9; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select { font: inherit; line-height: 1.5; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; }
button, input, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--orange); }
input:focus, input:focus-visible, select:focus, select:focus-visible,
textarea:focus, textarea:focus-visible { outline: none; box-shadow: none; }
[hidden] { display: none !important; }
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.text_muted { color: var(--muted); }
.sr_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- 2. Sidebar ---------- */
.page-container { min-height: 100vh; }
.sidebar-menu { width: 234px; position: fixed; inset: 0 auto 0 0; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 30; transition: transform .2s; }
.sidebar-header { padding: 30px 28px 58px; }
.main_logo { width: 134px; height: 40px; object-fit: contain; object-position: left; }
#menu { padding: 0 18px; overflow-y: auto; flex: 1; }
.metismenu .link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 12px; margin-bottom: 2px; border-radius: 6px; font-size: 14px; color: #5A6D89; background: none; border: 0; text-align: left; }
.metismenu .link:hover { background: #F6F7F9; }
.metismenu .active .link { background: var(--navy); color: #fff; box-shadow: 0 3px 8px #142c4710; }
.metismenu .active .icon { color: var(--orange); }
.menu_title { padding: 28px 12px 14px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; color: #95A2B6; line-height: 1.7; }
.menu_count { font-size: 10px; color: #718198; background: #EDF1F5; padding: 2px 6px; margin-left: auto; border-radius: 4px; flex-shrink: 0; }
.metismenu .active .menu_count { color: #fff; background: #3D5570; }
.sidebar_footer { margin: 22px 18px 0; padding: 14px 10px 26px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E9EFF6; color: #547193; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.sidebar_backdrop { display: none; }

/* ---------- 3. Shared header and footer ---------- */
.main-content { margin-left: 234px; min-height: 100vh; display: flex; flex-direction: column; transition: margin .2s; }
.header-area { height: 77px; flex-shrink: 0; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 16px; font-size: 14px; color: #526780; }
.breadcrumb span:first-child { color: var(--muted); }
.breadcrumb .divider { color: #BAC5D3; }
.header_actions { display: flex; align-items: center; gap: 24px; }
.icon_btn { border: 0; background: transparent; color: #768AA5; display: inline-flex; align-items: center; justify-content: center; padding: 6px; border-radius: 6px; }
.profile_area { position: relative; }
.profile_area summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.profile_area summary::-webkit-details-marker { display: none; }
.profile_area .avatar { background: #FBE7DA; color: #A3663C; }
.profile_menu { position: absolute; top: 42px; right: 0; background: #fff; padding: 12px 18px; border: 1px solid var(--border); border-radius: 6px; min-width: 130px; box-shadow: 0 8px 25px #142c4710; z-index: 10; }
.nav-btn { display: none; }
.inner-main-content { padding: 30px 34px; flex: 1; }
.page_title { font-size: 28px; font-weight: 600; letter-spacing: -.7px; line-height: 1.5; }
.page_heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.footer { padding: 16px 34px; border-top: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 12px; }
.footer a { color: var(--primary); }

/* ---------- 4. Buttons and search ---------- */
.main-btn, .add_btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--orange); background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.main-btn:hover, .add_btn:hover { background: #DB6A2B; }
.cancel_btn { background: #fff; color: #718198; border-color: #DDE5F0; }
.cancel_btn:hover { background: #F6F7F9; }
.main_card_head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.search_box { position: relative; width: 300px; }
.search_box > .search_icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; color: #91A1B7; pointer-events: none; }
.search_box input { width: 100%; padding: 10px 12px 10px 34px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 12px; color: var(--primary); }
.card_head_actions, .status_tabs, .view_switch { display: flex; align-items: center; gap: 8px; }
.filter_btn { padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 6px; color: #8193AE; font-size: 12px; }
.filter_btn span { opacity: .65; margin-left: 4px; }
.filter_btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.view_switch { margin-left: 12px; padding: 4px; border: 1px solid var(--border); border-radius: 6px; gap: 0; }
.view_switch .active { background: #E9EFF5; color: #416285; }
.view_btn { position: relative; cursor: pointer; padding: 8px; }
.icon_btn > span, .add_btn > span { display: inline-flex; }
.view_btn input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.view_btn:has(input:checked) { background: #E9EFF5; color: #416285; }
.view_btn:has(input:focus-visible) { outline: 2px solid var(--orange); }
.main_card:not(:has(input[name="project_view"][value="list"]:checked)) #listView { display: none; }
.main_card:has(input[name="project_view"][value="list"]:checked) #gridView { display: none; }

/* ---------- Loading overlay ---------- */
.overlay-wrapper { display: none; position: fixed; inset: 0; background: #ffffffcc; z-index: 100; }
.spinner { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -22px; border: 4px solid #E5EAF1; border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 5. Project cards and table ---------- */
.project_card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.project_card { height: 100%; display: flex; flex-direction: column; }
.project_card_body { flex: 1; }
.view_project { padding: 0; border: 0; background: transparent; color: #6382A7; font: inherit; }
.main_table .view_project { margin-left: 10px; font-size: 12px; }
.project_card_top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 4px; font-size: 12px; font-weight: 400; }
.status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status.active { background: #EBFCF3; color: #329D6C; }
.status.inactive { background: #FFF0ED; color: #C15F4C; }
.edit_btn { background: #F5F8F9; color: #54718F; }
.project_card_body { padding: 32px 18px 30px; }
.project_code { color: #6680A1; font-size: 8px; letter-spacing: 2px; margin-bottom: 10px; }
.project_name { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.project_location { color: #8A9BB2; font-size: 12px; display: flex; gap: 4px; align-items: center; }
.project_customer { color: #8A9BB2; font-size: 12px; margin: 24px 0 20px; }
.project_engineer { display: flex; justify-content: space-between; gap: 12px; color: #8A9BB2; font-size: 12px; }
.project_engineer strong { font-weight: 400; color: #4D6C90; }
.project_card_footer { border-top: 1px solid #EDF0F5; padding: 16px 18px; font-size: 12px; font-weight: 600; color: #6382A7; }
.project_card_footer .view_project { display: inline-flex; gap: 8px; align-items: center; }
.empty_state { text-align: center; padding: 60px 20px; color: var(--muted); background: white; border: 1px solid var(--border); border-radius: 8px; }
.table-responsive { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.main_table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.main_table th { background: #F0F3F7; font-size: 12px; font-weight: 600; cursor: pointer; }
.main_table th, .main_table td { padding: 18px 18px; border-bottom: 1px solid var(--border); }
.main_table td { font-size: 12px; }
.main_table .td_sub { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; }
.dataTables_info, .dataTables_paginate { padding: 16px; font-size: 12px; color: #718198; }
.dataTables_paginate { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.paginate_button { display: inline-block; padding: 8px 10px; cursor: pointer; border-radius: 4px; }
.paginate_button.current { background: var(--navy); color: white; }
.paginate_button.disabled { opacity: .4; cursor: default; }

/* ---------- 6. Forms ---------- */
/* 12-column utilities also keep the layout available without the CDN. */
.grid { display: grid; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gap-5 { gap: 20px; }
.col-span-12 { grid-column: span 12 / span 12; }
.col-span-6 { grid-column: span 6 / span 6; }
@media (min-width: 640px) { .sm\:col-span-6 { grid-column: span 6 / span 6; } }
@media (min-width: 1024px) {
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
}

/* Bootstrap popup layout, using the Eka design. */
.modal { position: fixed; inset: 0; z-index: 1055; display: none; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal-dialog { position: relative; width: auto; max-width: 900px; margin: 28px auto; padding: 0 16px; pointer-events: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 56px); }
.modal-content { position: relative; width: 100%; pointer-events: auto; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 80px #142c4720; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: #142C47; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: .3; }
.modal.fade .modal-dialog { transform: translateY(-15px); transition: transform .2s ease-out; }
.modal.show .modal-dialog { transform: none; }
.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .modal.fade .modal-dialog { transition: none; } }
.form_card { background: #fff; border: 1px solid var(--border); border-radius: 12px; max-width: 900px; margin: 36px auto; overflow: hidden; }
.form_card_head { padding: 32px 38px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.form_card_head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; }
.form_card_head p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.main_form { padding: 34px 32px 30px; }
.form_row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 14px; }
._input_box { position: relative; }
._input_box label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
._input_box label span { color: var(--orange); }
._input_box input, ._input_box select { width: 100%; padding: 12px 16px; border: 1px solid #DDE5F0; border-radius: 6px; color: #75869F; background: #fff; font-size: 12px; }
._input_box input:focus, ._input_box select:focus { border-color: var(--orange); }
._input_box.has_error input, ._input_box.has_error select { border-color: #C44736; }
._input_box span.validate-has-error { display: block; margin-top: 8px; color: #C44736; font-size: 12px; line-height: 1.4; }
._input_box input::placeholder { color: #94A0B1; }
.search_box._input_box input { padding-left: 34px; border-color: var(--border); }
.form_actions { margin-top: 40px; }
.form_actions .main-btn { font-size: 16px; }
.form_error { color: #B33C29; font-size: 12px; margin-top: 16px; }
.project_detail { padding: 24px; text-align: left; }
.project_detail p { margin: 12px 0; }

/* ---------- 7. Login ---------- */
.login_body { background: #fff; }
.login_section { min-height: 100vh; min-height: 100svh; }
.login_brand_panel { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 56px; background: #142C47; color: #fff; }
.login_brand_panel::before { content: ""; position: absolute; z-index: -1; width: 110%; height: 90%; left: 30%; top: 26%; transform: rotate(-12deg); background-image: linear-gradient(#7498BA0D 1px, transparent 1px), linear-gradient(90deg, #7498BA0D 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.login_logo { display: inline-block; align-self: flex-start; }
.login_logo img { display: block; width: 110px; height: auto; }
.login_brand_content { margin: auto 0; padding: 64px 0; }
.login_brand_content h2 { font-size: 40px; font-weight: 600; line-height: 1.4; letter-spacing: -1px; }
.login_brand_content > p { margin-top: 20px; color: #B3C9E2; font-size: 14px; line-height: 1.9; }
.login_construction { display: block; width: 360px; max-width: 70%; margin: 24px 24% 0 auto; }
.login_brand_footer { color: #7D9CBF; font-size: 10px; line-height: 1.6; }
.inner_login_section { display: flex; align-items: center; justify-content: center; padding: 64px 32px; }
.login_body .main_login_box { width: 100%; max-width: 324px; padding: 0; }
.login_preview_label { display: inline-block; margin-bottom: 16px; padding: 6px 8px; border: 1px solid #DFEAE2; border-radius: 4px; color: #8DA0AC; background: #F3F8F3; font-size: 10px; }
.main_login_box h1 { font-size: 24px; font-weight: 600; margin-bottom: 16px; letter-spacing: -.6px; }
.main_login_box > p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 28px; }
.main_login_box .login_form { margin-top: 28px; }
.login_form ._input_box label { font-size: 12px; color: #718198; }
.login_form ._input_box { margin-bottom: 20px; }
.login_form .password { padding-right: 48px; }
.password_input { position: relative; }
.toggle-password { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.login-btn { width: 100%; margin-top: 28px; font-size: 14px; }
.login_options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login_options .check_box { font-size: 12px; gap: 10px; }
.login_text_btn, .login_browse_btn { border: 0; background: transparent; color: #6382A7; font-size: 12px; padding: 0; }
.main_login_box > .login_preview_note { margin: 20px 0 28px; text-align: center; font-size: 12px; line-height: 2; }
.login_browse_btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto; }
.login_submit_icon, .login_browse_icon { width: 14px; height: 14px; }
.login_help_close_icon, .login_screens_close_icon { width: 20px; height: 20px; }
.login_info_dialog { max-width: 520px; }
.login_info_dialog p { line-height: 1.8; }
.login_dialog_actions, .login_screen_links { padding: 24px 32px; }
.login_screen_links a { padding: 14px 16px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.login_screen_links a:hover { background: #F4F7FA; color: var(--orange); }
@media (min-width: 1024px) { .lg\:col-span-6 { grid-column: span 6 / span 6; } }
@media (max-width: 1023px) {
  .login_brand_panel { padding: 32px; }
  .login_brand_content { padding: 36px 0; }
  .login_brand_content h2 { font-size: 32px; }
  .login_construction { display: none; }
  .inner_login_section { padding: 48px 24px; }
}
@media (max-width: 575px) {
  .login_brand_panel { padding: 24px; }
  .login_brand_content h2 { font-size: 28px; }
  .login_brand_content { padding: 28px 0; }
  .login_brand_content > p { font-size: 12px; }
  .login_desktop_break { display: none; }
}

/* ---------- 8. Responsive ---------- */
@media (max-width: 1199px) {  .main_card_head { flex-wrap: wrap; } .form_row { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) {
  .sidebar-menu { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .nav-btn { display: inline-flex; }
  .sidebar_open .sidebar-menu { transform: translateX(0); }
  .sidebar_open .sidebar_backdrop { display: block; position: fixed; inset: 0; background: #142c4766; border: 0; z-index: 25; }
  .header-area { padding: 0 20px; }
  .inner-main-content { padding: 26px 20px; }
  .header_left { display: flex; align-items: center; gap: 12px; }
}
@media (max-width: 575px) {
  .header-area { height: 68px; padding: 0 14px; }
  .profile_name, .header_actions > .icon_btn { display: none; }
  .header_actions { gap: 8px; }
  .breadcrumb { gap: 8px; font-size: 12px; }
  .inner-main-content { padding: 22px 16px; }
  .page_title { font-size: 24px; }
  .add_btn { padding: 10px 12px; font-size: 12px; }
  .search_box { width: 100%; }
  .card_head_actions { width: 100%; justify-content: space-between; gap: 4px; }
  .filter_btn { padding: 12px 8px; font-size: 12px; }
  .view_switch { margin-left: 0; }
  .form_row { grid-template-columns: 1fr; }
  .form_card { margin: 10px auto; }
  .form_card_head { padding: 24px 20px; }
  .main_form { padding: 24px 20px; }
  .form_actions { gap: 12px; margin-top: 28px; }
  .form_actions .main-btn { font-size: 14px; }
  .footer { padding: 16px; font-size: 12px; }
  .main_login_box { padding: 30px 22px; }
}


/* ---------- Individual icon sizes ---------- */
.overview_icon { width: 18px; height: 18px; }
.project_icon { width: 18px; height: 18px; }
.daily_work_icon { width: 18px; height: 18px; }
.customer_icon { width: 18px; height: 18px; }
.rate_analysis_icon { width: 18px; height: 18px; }
.quotations_icon { width: 18px; height: 18px; }
.item_master_icon { width: 18px; height: 18px; }
.material_icon { width: 18px; height: 18px; }
.drawing_icon { width: 18px; height: 18px; }
.users_permissions_icon { width: 18px; height: 18px; }
.mobile_app_icon { width: 18px; height: 18px; }
.screen_library_icon { width: 18px; height: 18px; }
.login_screen_icon { width: 18px; height: 18px; }
.menu_toggle_icon { width: 18px; height: 18px; }
.notification_icon { width: 18px; height: 18px; }
.profile_arrow_icon { width: 14px; height: 14px; }
.password_eye_icon { width: 18px; height: 18px; }
.add_project_icon { width: 18px; height: 18px; }
.project_search_icon { width: 14px; height: 14px; }
.grid_view_icon { width: 16px; height: 16px; }
.list_view_icon { width: 16px; height: 16px; }
.card_edit_icon { width: 18px; height: 18px; }
.project_location_icon { width: 14px; height: 14px; }
.view_project_icon { width: 14px; height: 14px; }
.table_edit_icon { width: 18px; height: 18px; }
.add_popup_close_icon { width: 24px; height: 24px; }
.edit_popup_close_icon { width: 24px; height: 24px; }

/* ---------- Daily reports listing ---------- */
.page_eyebrow { margin-bottom: 12px; color: #8195AD; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.page_subtitle { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.reports_heading { margin-bottom: 28px; }
.reports_actions { display: flex; align-items: center; gap: 12px; }
.reports_actions .main-btn { font-size: 12px; }
.reports_summary { margin-bottom: 24px; }
.summary_card { height: 100%; padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.summary_card_head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.summary_icon_box { display: inline-flex; align-items: center; justify-content: center; padding: 10px; border-radius: 8px; }
.summary_icon_box.reports { color: #658DC5; background: #EEF4FD; }
.summary_icon_box.submitted { color: #56A585; background: #EAF5F0; }
.summary_icon_box.draft { color: #EF7C39; background: #FFF1E6; }
.summary_icon_box.photos { color: #9B7EC9; background: #F0ECFA; }
.summary_value { margin-top: 16px; font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -1px; }
.summary_note { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.reports_card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.reports_card_head { padding: 22px 20px 0; }
.card_title { font-size: 16px; font-weight: 600; }
.card_subtitle { margin-top: 8px; font-size: 14px; color: var(--muted); }
.reports_toolbar { padding: 32px 20px 16px; margin-bottom: 0; }
.reports_filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.report_project_filter { width: 188px; }
.report_status_filter { width: 128px; }
.register_month { font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: #6883A1; white-space: nowrap; }
.reports_table_wrap { border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.reports_table th { padding: 18px 16px; color: var(--muted); background: #FBFCFE; font-weight: 400; cursor: default; }
.reports_table td { padding: 20px 16px; color: var(--muted); }
.reports_table .td_title { color: #44688E; font-size: 14px; font-weight: 500; }
.reports_table .td_sub { margin-top: 8px; font-size: 12px; }
.report_author, .report_photos { display: flex; align-items: center; gap: 8px; }
.report_avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #E9EFF6; color: #547193; font-size: 8px; font-weight: 600; }
.status.submitted { background: #EDF4FE; color: #658FC9; }
.status.draft { background: #FFF3E8; color: #CC8A3E; }
.reports_table .report_view_btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 0; font-size: 12px; }
.register_footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 12px; color: var(--muted); }
.report_export_icon { width: 14px; height: 14px; }
.report_add_icon { width: 14px; height: 14px; }
.summary_reports_icon { width: 14px; height: 14px; }
.summary_submitted_icon { width: 14px; height: 14px; }
.summary_draft_icon { width: 14px; height: 14px; }
.summary_photos_icon { width: 14px; height: 14px; }
.report_search_icon { width: 14px; height: 14px; }
.report_photos_icon { width: 16px; height: 16px; }
.report_view_icon { width: 14px; height: 14px; }
.customer_count { display: inline-block; margin-left: 4px; padding: 4px 6px; border-radius: 4px; background: #F0F3F7; color: #8195AD; font-size: 12px; font-weight: 400; vertical-align: middle; }
.customer_master_label { padding: 8px; border: 1px solid var(--border); border-radius: 4px; background: #F4F7FA; color: #8195AD; font-size: 12px; }
.customer_card .main_table tbody tr:last-child td { border-bottom: 0; }
.customer_add_icon { width: 14px; height: 14px; }
.customer_search_icon { width: 14px; height: 14px; }
.customer_edit_icon { width: 18px; height: 18px; }
.customer_add_close_icon { width: 24px; height: 24px; }
.customer_edit_close_icon { width: 24px; height: 24px; }

/* ---------- Materials, drawings and users ---------- */
.register_card { margin-bottom: 24px; }
.register_tabs { display: flex; gap: 20px; padding: 12px 20px 0; border-bottom: 1px solid var(--border); }
.register_tab { padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; }
.register_tab.active { color: var(--primary); border-bottom-color: var(--orange); }
.register_toolbar { padding-top: 16px; }
.status.inward, .status.outward { color: #8190A4; background: transparent; }
.status.current { color: #658FC9; background: #fff; }
.status.superseded { color: #8190A4; background: #fff; }
.stock_empty { text-align: center; }
.drawing_card { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.drawing_preview { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 20px 24px; background-color: #EEF5FA; background-image: linear-gradient(#DCE8F366 1px, transparent 1px), linear-gradient(90deg, #DCE8F366 1px, transparent 1px); background-size: 16px 16px; }
.drawing_preview > .status { position: absolute; left: 12px; top: 12px; }
.drawing_preview img { width: 180px; height: auto; }
.drawing_copy_type { position: absolute; right: 12px; bottom: 12px; font-size: 10px; letter-spacing: 1px; color: #8BA5C2; text-transform: uppercase; }
.drawing_card_body { padding: 20px 16px; flex: 1; }
.drawing_code { font-size: 8px; color: #718BA8; letter-spacing: 2px; margin-bottom: 12px; }
.drawing_code span { color: var(--orange); margin-left: 4px; }
.drawing_title { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.drawing_project { color: var(--muted); font-size: 12px; }
.drawing_meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 20px; }
.drawing_card_footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.drawing_card_footer .view_project, .register_card .view_project { display: inline-flex; align-items: center; gap: 8px; }
.permission_section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.permission_section > .grid { margin-top: 20px; }
.check_box { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #718198; cursor: pointer; }
.check_box input { accent-color: var(--orange); flex-shrink: 0; }

/* ---------- Item, product, analysis and quotation pages ---------- */
.table_actions { display: flex; align-items: center; gap: 8px; }
.table_btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; background: #fff; border: 1px solid #DDE5F0; border-radius: 6px; color: #8195AD; font-size: 12px; font-weight: 500; white-space: nowrap; }
.table_btn:hover { background: #F5F7FA; color: var(--navy); }
.master_card .main_table tbody tr:last-child td { border-bottom: 0; }
.master_card .view_project { display: inline-flex; align-items: center; gap: 8px; }
.status.issued { color: #8190A4; background: #F0F2F5; }
.composition_section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.composition_section > .grid { margin-top: 20px; }
.composition_list { margin-top: 20px; }
.composition_row { margin-bottom: 16px; }
.composition_row:last-child { margin-bottom: 0; }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-4 { grid-column: span 4 / span 4; }
.composition_actions { display: flex; align-items: flex-start; gap: 8px; padding-top: 34px; }
@media (max-width: 575px) {
  .composition_row { gap: 8px; }
  .composition_row > ._input_box { grid-column: span 6 / span 6; }
  .composition_actions { grid-column: span 12 / span 12; padding-top: 0; justify-content: flex-end; }
}
.composition_add { color: #fff; background: var(--orange); padding: 8px; }
.composition_remove { color: #C15F4C; background: #FFF0ED; padding: 8px; }
.composition_remove:disabled { opacity: .4; }
.composition_add_icon { width: 16px; height: 16px; }
.composition_remove_icon { width: 16px; height: 16px; }
.analysis_notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 16px 18px; border: 1px solid #DCE8F2; border-radius: 6px; background: #EEF5F9; color: #8195AD; font-size: 14px; line-height: 1.6; }
.analysis_notice .icon { margin-top: 4px; }
.analysis_fields { padding: 24px 22px; }
.analysis_table { min-width: 760px; }
.analysis_table td { padding: 12px 16px; }
.analysis_table th:first-child { width: 32%; }
.analysis_table ._input_box input { padding: 12px 10px; }
.analysis_table td:nth-child(2) input, .analysis_table td:nth-child(3) input, .analysis_table td:nth-child(4) input { min-width: 84px; width: 100%; }
.analysis_totals { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 22px; background: #F5FAFA; color: #718198; }
.analysis_totals strong { display: block; margin-top: 8px; font-size: 20px; font-weight: 600; color: var(--primary); }
.analysis_summary { padding: 22px 20px; }
.analysis_summary .card_title { font-size: 14px; }
.analysis_details { padding: 24px 0; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.analysis_details > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 12px; }
.analysis_details > div:last-child { margin-bottom: 0; }
.analysis_details dt { color: var(--muted); }
.analysis_details dd { color: #547193; }
.analysis_help { padding: 12px; background: #F6F8FB; border-radius: 4px; font-size: 12px; line-height: 2; color: var(--muted); margin-bottom: 20px; }
.analysis_summary .main-btn { display: flex; width: 100%; margin-top: 8px; font-size: 12px; }
.analysis_summary .summary_note { line-height: 2; }
.form_notice { margin: 16px 22px; padding: 12px; color: #547193; background: #EEF5F9; border-radius: 6px; font-size: 12px; line-height: 1.6; }
@media (min-width: 1024px) { .lg\:col-span-9 { grid-column: span 9 / span 9; } }
@media (max-width: 1199px) {
  .reports_heading { align-items: flex-start; flex-wrap: wrap; }
  .reports_toolbar { align-items: flex-start; }
}
@media (max-width: 639px) {
  .reports_actions { flex-wrap: wrap; }
  .summary_card { padding: 20px; }
  .reports_filters { width: 100%; }
  .reports_filters .search_box { width: 100%; }
  .report_project_filter, .report_status_filter { width: auto; flex: 1; min-width: 0; }
  .register_footer { flex-wrap: wrap; font-size: 10px; }
}

/* Master page icons */
.item_add_icon { width: 16px; height: 16px; }
.itemSearch_icon { width: 16px; height: 16px; }
.item_edit_icon { width: 16px; height: 16px; }
.item_delete_icon { width: 16px; height: 16px; }
.addItemModal_close_icon { width: 16px; height: 16px; }
.editItemModal_close_icon { width: 16px; height: 16px; }
.product_add_icon { width: 16px; height: 16px; }
.productSearch_icon { width: 16px; height: 16px; }
.product_edit_icon { width: 16px; height: 16px; }
.product_delete_icon { width: 16px; height: 16px; }
.addProductModal_close_icon { width: 16px; height: 16px; }
.editProductModal_close_icon { width: 16px; height: 16px; }
.resource_remove_icon { width: 16px; height: 16px; }
.analysis_save_icon { width: 16px; height: 16px; }
.analysis_quotation_icon { width: 16px; height: 16px; }
.analysis_info_icon { width: 16px; height: 16px; }
.analysis_item_save_icon { width: 16px; height: 16px; }
.analysis_use_icon { width: 16px; height: 16px; }
.viewQuotationModal_close_icon { width: 16px; height: 16px; }
.quotation_add_icon { width: 16px; height: 16px; }
.quotation_reports_icon { width: 16px; height: 16px; }
.quotation_draft_icon { width: 16px; height: 16px; }
.quotation_submitted_icon { width: 16px; height: 16px; }
.quotation_photos_icon { width: 16px; height: 16px; }
.quotationSearch_icon { width: 16px; height: 16px; }
.quotation_view_icon { width: 16px; height: 16px; }
.newQuotationModal_close_icon { width: 16px; height: 16px; }
.product_master_icon { width: 16px; height: 16px; }

/* Register page icons */
.material_view_icon { width: 16px; height: 16px; }
.material_export_icon { width: 16px; height: 16px; }
.material_add_icon { width: 16px; height: 16px; }
.materialSearch_icon { width: 16px; height: 16px; }
.addMaterialModal_close_icon { width: 16px; height: 16px; }
.viewMaterialModal_close_icon { width: 16px; height: 16px; }
.drawing_export_icon { width: 16px; height: 16px; }
.drawing_add_icon { width: 16px; height: 16px; }
.drawingSearch_icon { width: 16px; height: 16px; }
.drawing_manage_icon { width: 16px; height: 16px; }
.addDrawingModal_close_icon { width: 16px; height: 16px; }
.manageDrawingModal_close_icon { width: 16px; height: 16px; }
.user_add_icon { width: 16px; height: 16px; }
.user_permission_notice_icon { width: 16px; height: 16px; }
.userSearch_icon { width: 16px; height: 16px; }
.user_manage_icon { width: 16px; height: 16px; }
.addUserModal_close_icon { width: 16px; height: 16px; }
.manageUserModal_close_icon { width: 16px; height: 16px; }

/* Shared icon-only edit and delete actions */
.action_edit { color: #54718F; background: transparent; }
.action_delete { color: #C15F4C; background: transparent; }
.action_edit:hover { background: #EDF2F7; }
.action_delete:hover { background: #FFF0ED; }
