#aquila-hrm-b2-workforce {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    padding: 28px 30px 40px;
    background: #f6f8fb;
    color: #172033;
    font-family: inherit;
}

.aquila-hrm-b2-owner > :not(#aquila-hrm-b2-workforce) {
    display: none !important;
}

#aquila-hrm-b2-workforce *,
#aquila-hrm-b2-workforce *::before,
#aquila-hrm-b2-workforce *::after {
    box-sizing: border-box;
}

.b2-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.b2-page-head h1 {
    margin: 5px 0 7px;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #121a2b;
}

.b2-page-head p {
    max-width: 760px;
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.b2-eyebrow {
    display: block;
    color: #3558a8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.b2-page-actions,
.b2-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.b2-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.b2-metric {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.b2-metric span {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
}

.b2-metric strong {
    display: block;
    color: #172033;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 700;
}

.b2-metric small {
    display: block;
    margin-top: 6px;
    color: #98a2b3;
    font-size: 10px;
}

.b2-panel {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.b2-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 17px;
    border-bottom: 1px solid #edf0f4;
}

.b2-panel-head h2 {
    margin: 0;
    color: #172033;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.b2-panel-head p {
    margin: 4px 0 0;
    color: #7b8495;
    font-size: 11px;
    line-height: 1.45;
}

.b2-button {
    appearance: none;
    min-height: 31px;
    padding: 6px 11px;
    border: 1px solid #d4dae4;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.b2-button:hover {
    border-color: #b6c0d0;
    background: #f8fafc;
}

.b2-button.is-primary {
    border-color: #3156a3;
    background: #3156a3;
    color: #fff;
}

.b2-button.is-danger {
    border-color: #f0c7c7;
    background: #fff8f8;
    color: #b42318;
}

.b2-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.b2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.b2-table th {
    padding: 10px 14px;
    border-bottom: 1px solid #e9edf3;
    background: #f8fafc;
    color: #667085;
    text-align: left;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.b2-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #eef1f5;
    color: #344054;
    vertical-align: middle;
}

.b2-table tbody tr:last-child td {
    border-bottom: 0;
}

.b2-table tbody tr:hover {
    background: #fafbfd;
}

.b2-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 9px;
    font-weight: 700;
    text-transform: capitalize;
}

.b2-badge.is-approved,
.b2-badge.is-active {
    background: #ecfdf3;
    color: #027a48;
}

.b2-badge.is-submitted,
.b2-badge.is-pending {
    background: #fffaeb;
    color: #b54708;
}

.b2-badge.is-rejected {
    background: #fef3f2;
    color: #b42318;
}

.b2-badge.is-draft {
    background: #eff4ff;
    color: #3538cd;
}

.b2-empty,
.b2-loading,
.b2-error {
    padding: 26px 18px;
    color: #7b8495;
    font-size: 12px;
    text-align: center;
}

.b2-error {
    margin-top: 18px;
    border: 1px solid #f3c7c7;
    border-radius: 8px;
    background: #fff7f7;
    color: #b42318;
}

.b2-error strong {
    display: block;
    margin-bottom: 7px;
}

.b2-error p {
    margin: 0;
}

.b2-toast {
    position: fixed;
    z-index: 100000;
    right: 22px;
    bottom: 22px;
    max-width: 420px;
    padding: 11px 14px;
    border: 1px solid #b7dfc7;
    border-radius: 7px;
    background: #ecfdf3;
    color: #027a48;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
}

.b2-toast.is-error {
    border-color: #f3c7c7;
    background: #fff5f5;
    color: #b42318;
}

@media (max-width: 1280px) {
    .b2-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #aquila-hrm-b2-workforce {
        padding: 20px 16px 32px;
    }

    .b2-page-head,
    .b2-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .b2-page-actions {
        width: 100%;
    }

    .b2-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .b2-page-head h1 {
        font-size: 23px;
    }
}

@media (max-width: 430px) {
    #aquila-hrm-b2-workforce {
        padding: 16px 11px 28px;
    }

    .b2-metrics {
        grid-template-columns: 1fr;
    }

    .b2-button {
        min-height: 34px;
    }
}

/* ==========================================================================
   HRM-B2 NATIVE ACTIVATION R3
   Compact 8-card HRM module home
   ========================================================================== */

#aquila-hrm-r6 .procurement-home-menu-grid{
  display:grid!important;
  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    )!important;
  gap:10px!important;
}

#aquila-hrm-r6 .procurement-home-menu-card{
  min-width:0!important;
  min-height:74px;
  padding:11px 12px!important;
}

#aquila-hrm-r6 .procurement-home-menu-title{
  min-width:0;
}

#aquila-hrm-r6 .procurement-home-menu-title strong{
  display:block;
  line-height:1.25;
}

#aquila-hrm-r6 .aquila-hrm-b2-home-card svg{
  display:block;
  width:20px;
  height:20px;
}

@media (max-width:1100px){

  #aquila-hrm-r6 .procurement-home-menu-grid{
    grid-template-columns:
      repeat(
        3,
        minmax(0,1fr)
      )!important;
  }

}

@media (max-width:768px){

  #aquila-hrm-r6 .procurement-home-menu-grid{
    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      )!important;
  }

}

@media (max-width:430px){

  #aquila-hrm-r6 .procurement-home-menu-grid{
    grid-template-columns:
      minmax(
        0,
        1fr
      )!important;
  }

  #aquila-hrm-r6 .procurement-home-menu-card{
    min-height:68px;
  }

}

/* ==========================================================================
   HRM-B2 RIGHTFUL FRONTEND R4
   5 existing workspaces + Attendance + Leave = 7 workspaces.
   ========================================================================== */

/*
 * At wide desktop, all seven operational workspaces fit
 * on one clean row. This is the requested reduced card width.
 */
#aquila-hrm-r6 .aquila-hrm-seven-workspace-grid{
  display:grid!important;
  grid-template-columns:
    repeat(
      7,
      minmax(0,1fr)
    )!important;
  gap:8px!important;
  width:100%!important;
}

#aquila-hrm-r6 .aquila-hrm-seven-workspace-card{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  padding:10px 10px!important;
}

/*
 * Laptop
 */
@media (max-width:1439px){

  #aquila-hrm-r6 .aquila-hrm-seven-workspace-grid{
    grid-template-columns:
      repeat(
        4,
        minmax(0,1fr)
      )!important;
  }

}

/*
 * Tablet
 */
@media (max-width:1000px){

  #aquila-hrm-r6 .aquila-hrm-seven-workspace-grid{
    grid-template-columns:
      repeat(
        3,
        minmax(0,1fr)
      )!important;
  }

}

/*
 * Mobile
 */
@media (max-width:768px){

  #aquila-hrm-r6 .aquila-hrm-seven-workspace-grid{
    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      )!important;
  }

}

/*
 * Small mobile
 */
@media (max-width:430px){

  #aquila-hrm-r6 .aquila-hrm-seven-workspace-grid{
    grid-template-columns:
      minmax(
        0,
        1fr
      )!important;
  }

}
