/**
 * Common Admin Page Styling
 * Applied to all admin pages (list, detail, etc.)
 * Matches Figma design specifications
 */

/* ========================================
   Page Layout & Background
   ======================================== */

/* Admin pages background color */
body {
  background-color: #eef3fc;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Page Container */
.page-container {
  min-width: 1376px;
  padding: 30px 48px;
  width: 100%;
}

/* Page Title */
.page-title {
  font-size: 30px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  color: black;
  letter-spacing: -0.15px;
  margin-bottom: 30px;
}

/* ========================================
   Card Sections
   ======================================== */

.card-section {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 13px;
  padding: 25px 32px;
  margin-bottom: 30px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  color: black;
  letter-spacing: -0.1px;
  margin-bottom: 10px;
}

/* ========================================
   Header Styles (Thymeleaf Fragment)
   ======================================== */

/* Header 1 - Logged In */
.hy-header-1 {
  height: 80px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
}

.hy-header-1 .navbar-brand {
  width: 169px;
}

.hy-header-1 .navbar-nav {
  gap: 45px;
}

.hy-header-1 .nav-link {
  font-size: 16px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  color: black;
  letter-spacing: -0.08px;
  padding: 0;
}

.hy-header-1 .nav-link:hover {
  color: #2882ff;
}

.hy-header-1 .nav-link.active {
  color: #2882ff;
  font-weight: 600;
}

.hy-header-user-name {
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  padding: 4px 10px;
  color: #2882ff;
  letter-spacing: -0.07px;
}

.hy-header-logout-btn {
  height: 28px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  border-radius: 5px;
  background-color: #cde2ff;
  border-color: #2882ff;
  color: #2882ff;
  letter-spacing: -0.065px;
}

.hy-header-logout-btn:hover {
  background-color: #b3d1ff;
}

/* Header 2 - Logged Out (Login Page) */
.hy-header-2 {
  height: 80px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
}

.hy-header-2 .navbar-brand {
  width: 169px;
}

.hy-header-2 .navbar-nav {
  gap: 45px;
}

.hy-header-2 .nav-link {
  font-size: 16px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  color: black;
  letter-spacing: -0.08px;
  padding: 0;
}

.hy-header-2 .nav-link:hover {
  color: #2882ff;
}

/* ========================================
   Search & Filter Sections
   ======================================== */

.search-section {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 13px;
  padding: 25px 32px;
  margin-bottom: 30px;
}

.search-section .section-title {
  margin-bottom: 16px;
}

.search-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-label {
  font-size: 13px;
  font-family: "Roboto", sans-serif;
  color: black;
  font-weight: 400;
}

/* Table Controls (above tables) */
.table-controls {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.table-controls-left {
  display: flex;
  gap: 13px;
  align-items: center;
  flex: 1;
}

/* ========================================
   Button Styles
   ======================================== */

.blue-button-basic {
  background-color: #2882ff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blue-button-basic:hover {
  background-color: #1e6fd9;
}

.blue-button-plus {
  background-color: #2882ff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.blue-button-plus i {
  font-size: 14px;
}

.blue-button-plus:hover {
  background-color: #1e6fd9;
}

.blue-button-report {
  background-color: #2882ff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.blue-button-report i {
  font-size: 14px;
}

.blue-button-report:hover {
  background-color: #1e6fd9;
}

/* Info button (cyan/teal color for Stripe buttons) */
.blue-button-info {
  background-color: #17a2b8; /* Bootstrap btn-info color */
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
}

.blue-button-info:hover {
  background-color: #138496; /* Darker shade */
  color: white;
  text-decoration: none;
}

.blue-button-info i {
  font-size: 14px;
}

.btn-sm-nam {
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Download button (gray) - common across list pages */
.download-button {
  background-color: #9f9f9f;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.download-button:hover {
  background-color: #808080;
}

.download-button i {
  font-size: 14px;
}

/* Send Mail button - common across list pages */
.send-mail-button {
  background-color: #2882ff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.send-mail-button:hover {
  background-color: #1e6fd9;
}

.send-mail-button i {
  font-size: 14px;
}

/* Search row layout */
.search-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Table Controls */
.table-controls-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Checkbox Filters - common across list pages */
.checkbox-filters {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.checkbox-filter-item {
  display: flex;
  gap: 9px;
  align-items: center;
}

.checkbox-filter-item input[type="checkbox"] {
  width: 13px;
  height: 13px;
  border: 1px solid #9f9f9f;
  border-radius: 2px;
  cursor: pointer;
}

.checkbox-filter-item label {
  font-size: 13px;
  font-family: "Roboto", sans-serif;
  color: black;
  margin-bottom: 0;
  cursor: pointer;
}

/* Table cell content styles - for multi-line content */
.entity-service-info,
.service-list {
  font-size: 12px;
  line-height: 1.5;
}

.entity-service-info p,
.service-list p {
  margin-bottom: 4px;
}

/* ========================================
   Table Styles
   ======================================== */

.hy-table-1 {
  font-size: 12px;
  font-family: "Roboto", sans-serif;
}

.hy-table-1 thead th {
  background-color: #deecff;
  border-bottom: 1px solid #ccc;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 12px;
}

.hy-table-1 tbody td {
  padding: 0 16px;
  border-bottom: 1px solid #ccc;
  font-size: 12px;
  vertical-align: middle;
  height: 44px;
}

.hy-table-1 thead th i {
  color: #666;
  cursor: pointer;
  font-size: 10px;
  margin-left: 4px;
}

.hy-table-1 thead th i:hover {
  color: #2882ff;
}

.hy-table-1 .form-check-input {
  width: 16px;
  height: 16px;
  border: 1px solid #9f9f9f;
  border-radius: 2px;
}

/* ========================================
   Form Components
   ======================================== */

/* Component 1-4 styles (from Figma components) */
.hy-form-component-1,
.hy-form-component-2,
.hy-form-component-3,
.hy-form-component-4 {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 57px;
  width: 240px;
}

.hy-form-component-1 .form-label,
.hy-form-component-2 .form-label,
.hy-form-component-3 .form-label,
.hy-form-component-4 .form-label {
  font-size: 13px;
  font-family: "Roboto", sans-serif;
  color: black;
  font-weight: 400;
  margin-bottom: 2px;
}

.hy-form-component-1 .hy-calendar-input,
.hy-form-component-2 .hy-dropdown-a {
  margin-top: auto;
}

.form-label {
  font-size: 13px;
  font-family: "Roboto", sans-serif;
  color: black;
  font-weight: 400;
}

/* Dropdown styles - Basic dropdown */
.hy-dropdown {
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: #666;
}

.hy-dropdown:focus {
  border-color: #2882ff;
  box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
  outline: none;
}

/* Dropdown styles - With input-group */
.hy-dropdown-simple,
.hy-dropdown-updown,
.hy-dropdown-a {
  height: 32px;
  width: 240px;
}

.hy-dropdown-simple .form-control,
.hy-dropdown-updown .form-control,
.hy-dropdown-a .form-control {
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: #666;
}

/* Dropdown-a has left border radius only */
.hy-dropdown-a .form-control {
  border-radius: 6px 0 0 6px;
}

.hy-dropdown-updown .form-control {
  border-radius: 6px 0 0 6px;
}

.hy-dropdown-simple .form-control:focus,
.hy-dropdown-updown .form-control:focus,
.hy-dropdown-a .form-control:focus {
  border-color: #2882ff;
  box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
  outline: none;
}

.hy-dropdown-a .input-group-text,
.hy-dropdown-updown .input-group-text {
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-left: none;
  border-radius: 0 6px 6px 0;
  background-color: white;
}

.hy-dropdown-a .input-group-text i {
  font-size: 20px;
  color: #1e1e1e;
}

/* Calendar/Date input styles */
.hy-calendar-input {
  height: 32px;
  width: 240px;
}

.hy-calendar-input .form-control {
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: #666;
  background-color: white;
}

/* When input-group-append is hidden, make the form-control fully rounded on right side */
.hy-calendar-input .input-group-append[style*="display: none"] ~ .form-control,
.hy-calendar-input .input-group-append[style*="display:none"] ~ .form-control {
  border-radius: 6px;
}

.hy-calendar-input .form-control:focus {
  border-color: #2882ff;
  box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
  outline: none;
}

.hy-calendar-input .input-group-text {
  height: 32px;
  border-left: none;
  border-radius: 0 6px 6px 0;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-left: none;
  cursor: pointer;
}

.hy-calendar-input .input-group-text i {
  font-size: 15px;
  color: #1e1e1e;
}

/* Search input styles */
.hy-search-input {
  height: 32px;
  width: 240px;
}

.hy-search-input .form-control {
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: #666;
}

.hy-search-input .form-control:focus {
  border-color: #2882ff;
  box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
  outline: none;
}

.hy-search-input .input-group-text {
  height: 32px;
  border-left: none;
  border-radius: 0 6px 6px 0;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-left: none;
}

.hy-search-input .input-group-text i {
  font-size: 15px;
  color: #1e1e1e;
}

/* Box Tag Component */
.hy-box-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 8px 10px;
  border: 1px solid #2882ff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  color: #2882ff;
  white-space: nowrap;
}

.hy-box-tag:hover {
  background-color: #f4f9ff;
}

.hy-box-tag.active {
  background-color: #2882ff;
  color: white;
}

/* Time display component */
.hy-time-display {
  width: 153px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  background-color: white;
  padding: 10px 16px;
}

.hy-time-display .time-content {
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: #666;
}

.hy-time-display .time-content p {
  margin: 0;
  line-height: 1.5;
}

/* Action Button Styles */
.action-button {
  height: 25px;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #666;
  background-color: #eeeeee;
  color: #666;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.action-button:hover {
  background-color: #dddddd;
}

.action-button[data-action="Report"] {
  background-color: #f4f9ff;
  border-color: #2882ff;
  color: #2882ff;
}

.action-button[data-action="Report"]:hover {
  background-color: #e0efff;
}

.action-button[data-action="Request Correction"] {
  background-color: #fff0a5;
  border-color: #666;
  color: #666;
}

.action-button[data-action="Request Correction"]:hover {
  background-color: #ffe85c;
}

.action-button[data-action="Download"],
.action-button[data-action="download"] {
  background-color: #eeeeee;
  border-color: #666;
  color: #666;
}

.action-button[data-action="Download"]:hover,
.action-button[data-action="download"]:hover {
  background-color: #dddddd;
}

.action-button[data-action="change"] {
  background-color: #f4f9ff;
  border-color: #2882ff;
  color: #2882ff;
}

.action-button[data-action="change"]:hover {
  background-color: #e0efff;
}

.action-button i {
  font-size: 14px;
}

/* Pagination */
.hy-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
}

.pagination-info {
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: black;
}

.pagination-btn {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.pagination-btn i {
  font-size: 20px;
  color: black;
}

.pagination-btn:hover:not(:disabled) i {
  color: #2882ff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Days Selector */
.hy-days-selector {
  display: flex;
  gap: 5px;
}

.day-button {
  height: 26px;
  padding: 6px 10px;
  border: 1px solid #2882ff;
  border-radius: 4px;
  background-color: white;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: #2882ff;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.day-button:hover {
  background-color: #f4f9ff;
}

.day-button.day-button-selected {
  border: 1px solid #2882ff;
  background-color: white;
  color: #2882ff;
}

.day-button.day-button-active {
  background-color: #2882ff;
  color: white;
}

.day-button.day-button-active:hover {
  background-color: #1e6fd9;
}

/* Show/Hide Toggle */
.hy-show-hide {
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: -0.06px;
  padding: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hy-show-hide:hover {
  color: #2882ff;
  text-decoration: none;
}

.hy-show-hide:focus {
  box-shadow: none;
}

.hy-show-hide-icon {
  font-size: 17px;
  transition: transform 0.3s;
}

.hy-show-hide[aria-expanded="true"] .hy-show-hide-icon {
  transform: rotate(180deg);
}

/* Entity Title and Toggle */
.entity-title {
  font-size: 16px;
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  color: black;
  letter-spacing: -0.08px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.entity-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: -0.06px;
  background: none;
  border: none;
  transition: color 0.2s;
}

.entity-toggle:hover {
  color: #2882ff;
  text-decoration: none;
}

.entity-toggle i {
  font-size: 17px;
  transition: transform 0.3s;
}

.entity-toggle.collapsed i,
.entity-content[style*="display: none"] ~ .entity-title .entity-toggle i {
  transform: rotate(-90deg);
}

/* ========================================
   Status Badges
   ======================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  color: white;
  white-space: nowrap;
}

.status-badge.badge-small {
  font-size: 9px;
}

.status-badge.badge-large {
  font-size: 11px;
}

/* Status Colors */
.status-badge[data-status="REQUEST_SENT"] {
  background-color: #9e9e9e;
}

.status-badge[data-status="AWAITING_FIRST_SUBMISSION"] {
  background-color: #cd9543;
}

.status-badge[data-status="RESPONSE_SUBMITTED"] {
  background-color: #64b5f6;
}

.status-badge[data-status="FIRST_SUBMISSION_RECEIVED"] {
  background-color: #75bf78;
}

.status-badge[data-status="IN_SERVICE"],
.status-badge[data-status="IN SERVICE"] {
  background-color: #7d4ed0;
}

.status-badge[data-status="MAIN_JOB_IN_PROGRESS"] {
  background-color: #2882ff;
}

.status-badge[data-status="REVIEW_IN_PROGRESS"] {
  background-color: #e77cd5;
}

.status-badge[data-status="AWAITING_PAYMENT_AND_SIGNATURE"] {
  background-color: #ff9800;
}

.status-badge[data-status="FILING_SUBMISSION"] {
  background-color: #2196f3;
}

.status-badge[data-status="EXPLICIT_END"] {
  background-color: #1dbbcf;
}

.status-badge[data-status="COMPLETED"] {
  background-color: #2eb833;
}

.status-badge[data-status="OVERDUE"] {
  background-color: #d32f2f;
}

.status-badge[data-status="URGENT"] {
  background-color: #ff7640;
}

.status-badge[data-status="CANCELLED"] {
  background-color: #757575;
}

.status-badge[data-status="HIDDEN"] {
  background-color: #5a5a5a;
  color: #b0b0b0;
  opacity: 0.7;
}

/* Monthly Service Status Badges */
.status-badge[data-status="WAITING"] {
  background-color: #ffc107;
  color: #000000;
  border: 1px solid #d4a017;
}

.status-badge[data-status="IN_SERVICE"] {
  background-color: #7d4ed0;
  color: white;
}

.status-badge[data-status="EXPIRED"] {
  background-color: #9e9e9e;
  color: white;
  opacity: 0.8;
}

/* Subtask Status Badges */
.status-badge[data-status="REQUEST_SENT"] {
  background-color: #9e9e9e;
  color: white;
}

.status-badge[data-status="RESPONSE_SUBMITTED"] {
  background-color: #75bf78;
  color: white;
}

.status-badge[data-status="DONE"] {
  background-color: #64b5f6;
  color: white;
}

.status-badge[data-status="CANCELLED"] {
  background-color: #757575;
  color: white;
}

/* Filing Status Badges - Projected Filings Matrix */
.filing-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  color: white;
  white-space: nowrap;
}

/* Required/Yes - Red/Orange (필수, 긍정적) */
.filing-status-badge[data-filing-status="yes"],
.filing-status-badge[data-filing-status="required"] {
  background-color: #d32f2f;
  color: white;
}

/* Conditional/Likely - Orange/Yellow (조건부, 가능성) */
.filing-status-badge[data-filing-status="depends"],
.filing-status-badge[data-filing-status="likely"] {
  background-color: #ff9800;
  color: white;
}

/* Recommended/Review - Blue (권장, 검토) */
.filing-status-badge[data-filing-status="recommended"],
.filing-status-badge[data-filing-status="review"] {
  background-color: #2196f3;
  color: white;
}

/* No/NA - Gray (해당없음) */
.filing-status-badge[data-filing-status="no"] {
  background-color: #9e9e9e;
  color: white;
}

/* Payment Status Badges */
.payment-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  color: black;
  white-space: nowrap;
}

.payment-status-badge[data-status="PAID"] {
  background-color: #43e192;
}

.payment-status-badge[data-status="UNPAID"] {
  background-color: #ff8383;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* ========================================
   Layout Shell & Sidebar
   ======================================== */

.hy-layout-shell {
  display: flex;
  flex: 1;
  align-items: flex-start; /* Ensure sidebar doesn't stretch more than its content */
}

.hy-side-panel {
  width: 210px;
  background: #1f2547;
  color: #c7ccdf;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  overflow-y: auto;
  position: sticky;
  top: 80px; /* Header height */
  height: calc(100vh - 80px);
  flex-shrink: 0;
  z-index: 100;
}

.hy-side-panel.collapsed {
  width: 68px;
  min-width: 68px;
}

.hy-side-panel.collapsed .hy-sidebar-header {
  justify-content: center;
}

.hy-side-panel.collapsed .hy-sidebar-title {
  display: none;
}

.hy-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c7ccdf;
}

.hy-sidebar-title {
  color: #c7ccdf;
  font-weight: 600;
}

.hy-sidebar-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.hy-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hy-sidebar-nav {
  flex: 1;
}

.hy-nav-section {
  margin-bottom: 1.5rem;
}

.hy-nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #8b91a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  padding: 0 0.8rem;
}

.hy-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  color: #c7ccdf;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.hy-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f7ff;
  text-decoration: none;
}

.hy-nav-link.active {
  background: #2f3560;
  color: #f5f7ff;
}

.hy-nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.hy-nav-text {
  flex: 1;
}

.hy-side-panel.collapsed .hy-nav-text,
.hy-side-panel.collapsed .hy-nav-section-title {
  display: none;
}

.hy-side-panel.collapsed .hy-nav-link {
  justify-content: center;
  padding: 0.65rem;
}

/* Main Content Area */
main {
  flex: 1;
  overflow-y: auto;
  background-color: #eef3fc;
}

@media (max-width: 1400px) {
  .page-container {
    min-width: auto;
    padding: 20px 24px;
  }

  .hy-header-1,
  .hy-header-2 {
    padding: 0 24px;
  }
}

/* ========================================
   Information Display Tables
   ======================================== */

.info-display-table {
  display: flex;
  flex-direction: column;
  width: 728px;
  max-width: 728px;
  box-sizing: border-box;
}

.info-row {
  display: flex;
  height: 43px;
  border-bottom: 1px solid rgba(204, 204, 204, 0.7);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.info-row:last-child {
  border-bottom: none;
}

/* Allow height expansion for rows containing input-group-vertical */
.info-row:has(.input-group-vertical) {
  height: auto;
  min-height: 43px;
  align-items: flex-start;
}

.info-row:has(.input-group-vertical) .info-label {
  align-items: flex-start;
  padding-top: 10px;
}

.info-label {
  width: 183px;
  min-width: 183px;
  max-width: 183px;
  background-color: #deecff;
  border-right: 1px solid rgba(204, 204, 204, 0.7);
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  color: black;
  letter-spacing: -0.07px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.info-value {
  flex: 1;
  background-color: rgba(222, 236, 255, 0.3);
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  color: black;
  letter-spacing: -0.07px;
  box-sizing: border-box;
}

/* Info Edit Column - Third column for edit inputs */
.info-edit {
  flex: 1;
  background-color: rgba(222, 236, 255, 0.3);
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  gap: 8px;
  box-sizing: border-box;
}

/* Override Bootstrap collapse for info-edit when not collapsed */
.info-edit:not(.collapse) {
  display: flex !important;
}

.info-edit input,
.info-edit select {
  width: 100%;
  height: 32px !important;
  min-height: 32px !important;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 6px 12px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-family: "Roboto", sans-serif;
  background-color: white;
  box-sizing: border-box;
}

.info-edit input:disabled,
.info-edit select:disabled {
  background-color: rgba(222, 236, 255, 0.3);
  border-color: transparent;
  cursor: not-allowed;
  color: black;
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.info-edit input:focus,
.info-edit select:focus {
  border-color: #2882ff;
  box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
  outline: none;
}

.info-edit input[type="date"] {
  padding: 6px 16px;
}

/* Multiple inputs in info-edit (horizontal layout) */
.info-edit .input-group {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.info-edit .input-group input,
.info-edit .input-group select {
  flex: 1;
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* Multiple inputs in info-edit (vertical layout) */
.info-edit .input-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.info-edit .input-group-vertical input,
.info-edit .input-group-vertical select {
  width: 100%;
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* Edit Mode - Same table structure with input fields */
.info-edit-mode .info-display-table {
  width: 728px;
  max-width: 728px;
}

.info-edit-mode .info-value {
  padding: 0;
  background-color: rgba(222, 236, 255, 0.3);
}

.info-edit-mode .info-value input,
.info-edit-mode .info-value select {
  width: 100%;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  background-color: white;
  box-sizing: border-box;
}

.info-edit-mode .info-value input:focus,
.info-edit-mode .info-value select:focus {
  border-color: #2882ff;
  box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
  outline: none;
}

.info-edit-mode .info-value input[type="date"] {
  padding: 6px 16px;
}

/* Multiple inputs in one row (e.g., Given Name + Family Name) */
.info-edit-mode .info-value .input-group {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.info-edit-mode .info-value .input-group input,
.info-edit-mode .info-value .input-group select {
  flex: 1;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  background-color: white;
  box-sizing: border-box;
}

.info-edit-mode .info-value .input-group input:focus,
.info-edit-mode .info-value .input-group select:focus {
  border-color: #2882ff;
  box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
  outline: none;
}

/* Vertical input group (e.g., Address 1 + Address 2) */
.info-edit-mode .info-value .input-group[style*="flex-direction: column"] {
  flex-direction: column !important;
  align-items: stretch;
}

.info-edit-mode
  .info-value
  .input-group[style*="flex-direction: column"]
  input {
  width: 100%;
}

/* ========================================
   Fragment Edit Form Controls (Detail Pages)
   ======================================== */

/* Fragment edit select and input controls - match detail page text size */
.fragment-edit input,
.fragment-edit select {
  width: 100%;
  height: 32px !important;
  min-height: 32px !important;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 6px 12px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-family: "Roboto", sans-serif;
  background-color: white;
  box-sizing: border-box;
}

.fragment-edit input:disabled,
.fragment-edit select:disabled {
  background-color: rgba(222, 236, 255, 0.3);
  border-color: transparent;
  cursor: not-allowed;
  color: black;
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.fragment-edit input:focus,
.fragment-edit select:focus {
  border-color: #2882ff;
  box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25);
  outline: none;
}

.fragment-edit .input-group input,
.fragment-edit .input-group select {
  flex: 1;
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.fragment-edit .input-group-vertical input,
.fragment-edit .input-group-vertical select {
  width: 100%;
  height: 32px !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* ========================================
   Accountant Select Box in Tables
   ======================================== */

/* Accountant select box in table cells - matches table text size */
.accountant-select-table {
  font-size: 14px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 4px 8px !important;
  line-height: 1.2 !important;
  border: 1px solid rgba(0, 0, 0, 0.3) !important;
  border-radius: 6px !important;
  font-family: "Roboto", sans-serif !important;
  background-color: white !important;
  width: 100% !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

.accountant-select-table:focus {
  border-color: #2882ff !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 130, 255, 0.25) !important;
  outline: none !important;
}

/* Override Bootstrap form-control default styles for accountant select */
.accountant-select-table.form-control {
  display: block;
  height: 28px !important;
  min-height: 28px !important;
  padding: 4px 8px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* ========================================
   Services Column with Padded Spacing
   ======================================== */

/* Preserve whitespace for right-padded text in Services column */
.services-column-padded {
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  text-align: left;
}

/* Monthly Service Information Table */
.monthly-svc-info-table {
  display: flex;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.monthly-svc-info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.monthly-svc-info-header {
  background-color: #deecff;
  border: 1px solid grey;
  padding: 12px 16px;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  color: black;
  box-sizing: border-box;
}

.monthly-svc-info-cell {
  background-color: white;
  border: 1px solid #cccccc;
  border-top: none;
  padding: 10px 16px;
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  color: black;
  box-sizing: border-box;
  overflow: hidden;
}

.monthly-svc-info-cell > div {
  line-height: 1.2;
}

.monthly-svc-info-cell > span {
  line-height: 1.2;
}

/* ========================================
   Task Info Section (Figma Design)
   ======================================== */

.task-info-section {
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
}

.task-info-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 25px 32px;
  flex: 1;
}

/* Info Badge Label - Unified label style for task info, payment info, etc. */
.info-badge-label {
  background-color: rgba(235, 235, 235, 0.7);
  border-radius: 6px;
  padding: 0 10px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  min-width: 140px;
  margin-bottom: 4px;
}

.info-badge-label i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Info Badge Value - Unified value style for task info, payment info, etc. */
.info-badge-value {
  padding: 0 12px;
  width: 297px;
  height: 32px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
}

/* Info Badge Row - Unified row style for task info, payment info, etc. */
.info-badge-row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.info-badge-row:last-child {
  margin-bottom: 0;
}

/* Accountant Info Display */
.accountant-info-display {
  padding: 0;
  background: white;
}

.accountant-main-name {
  font-size: 11px;
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  color: black;
  line-height: 1.4;
  margin-bottom: 0;
}

.accountant-detail {
  font-size: 11px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  color: grey;
  line-height: 1.4;
  margin-top: 0;
}

/* Payment Status Card */
.payment-status-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 25px 32px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .hy-layout-shell {
    flex-direction: column;
  }

  .hy-side-panel {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem;
  }
}

/* ========================================
   Popup Layout Styles
   ======================================== */

.hy-layout-popup {
  /* No sidebar/header adjustments */
  padding-top: 0 !important;
}

.hy-layout-popup .hy-main-content {
  /* Reset margins that might be set for sidebar */
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important; /* Some popups might handle their own padding */
}
