/* ==========================
   GLOBAL CONTENT DEFAULTS
   ========================== */

a {
    text-decoration: none;
    color: #464feb;
}

/* Constrain select elements to their container so long option text
   does not push the layout wider than the viewport. */
select,
.form-select {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

tr th,
tr td {
    border: 1px solid #e6e6e6;
}

tr th {
    background-color: #f5f5f5;
}

/* ==========================
   HERO SECTION
   ========================== */

body { overflow-x: clip !important; }

/* Force page-wrapper full width on mobile so side-panel JS detects no gap */
@media (max-width: 75rem) {
  .page-wrapper,
  .dialog-off-canvas-main-canvas {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }
}

/* Mobile: override grid.css's .layout--content-medium (must be in a later-weight file) */
@media (max-width: 768px) {
  .layout--content-medium,
  .layout--pass--content-medium > * {
    grid-column: 1 / -1 !important;
  }
  .grid-full {
    grid-template-columns: 1fr !important;
  }
  .grid-full > * {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  /* Ensure the views table area can't overflow the viewport */
  .senarai-data .view-content {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
  }
}

.spcp-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4rem;
    padding: 5rem 2rem;
    /* background:
        linear-gradient(
            135deg,
            #603900 0%,
            #8b5a00 100%
        ); */
    color: white;
    box-sizing: border-box;
    overflow: hidden;
    background: #352f14f2;
}

.spcp-hero-inner {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.spcp-hero h1 {
    color: #f6eb69;
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.spcp-hero p {
    color: rgb(246 235 105 / 69%);
    font-size: 1.25rem;
    line-height: 1.8;
    margin: 0;
}

/* ==========================
   FEATURE SECTION
   ========================== */

.spcp-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.spcp-card {
    background: #dedede;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all .3s ease;
}

.spcp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

/* All icons use the same corporate gold colour */
.spcp-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #7a4b00, #a56a00);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG icon via pseudo-element — works even if <i> tags are stripped */
.spcp-icon::before {
    content: '';
    display: block;
    width: 34px;
    height: 34px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* File / document icon */
.spcp-icon.blue::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3zM4.5 7a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7zm0 2a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7zm0 2a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7z'/%3E%3C/svg%3E");
}

/* Search / magnifier icon */
.spcp-icon.green::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zM6.5 12a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
}

/* Credit card icon */
.spcp-icon.gold::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1H0V4zm0 3h16v5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V7zm3 2a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1H3zm2 0a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1H5z'/%3E%3C/svg%3E");
}

/* Graph / trend icon */
.spcp-icon.purple::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath fill-rule='evenodd' d='M0 0h1v15h15v1H0V0zm10 3.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V4.9l-3.613 4.417a.5.5 0 0 1-.74.037L7.06 6.767l-3.656 5.027a.5.5 0 0 1-.808-.588l4-5.5a.5.5 0 0 1 .758-.06l2.609 2.61L13.445 4H10.5a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.spcp-icon i,
.spcp-icon svg {
    font-size: 2.125rem;
    width: 34px;
    height: 34px;
    fill: currentColor;
    color: white;
}

/* Individual color overrides (kept for backward compatibility) */

.spcp-icon.blue,
.spcp-icon.green,
.spcp-icon.gold,
.spcp-icon.purple {
    background: linear-gradient(139deg, #e13044, #ffe9e9);
}

.spcp-card h3 {
    color: #2f3742;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.spcp-card p {
    color: #6d7782;
    line-height: 1.8;
    margin: 0;
}

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

@media (max-width: 1024px) {

    .spcp-features {
        grid-template-columns: repeat(2,1fr);
    }

    .spcp-hero h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {

    .spcp-features {
        grid-template-columns: 1fr;
    }

    .spcp-hero h1 {
        font-size: 2rem;
    }

    .spcp-hero p {
        font-size: 1rem;
    }
}

/* ==========================
   STATISTICS ROW
   ========================== */

.spcp-stats {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    background: #352f14f2;
    color: #ffe78f;
    border-radius: 16px;
    padding: 30px;
    gap: 16px;
}

.spcp-stats strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.spcp-stats span {
    opacity: .85;
    font-size: .95rem;
}

@media (max-width: 768px) {

    .spcp-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.main-content__container {
  padding-block-start: var(--sp2);

  @media (min-width: 43.75rem) {
    padding-block-start: var(--sp1);background: #ffffffe3;margin-top: 3em;
  }
}

aside#admin-toolbar {
    z-index: 9999999999;
}


.path-statistik .ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front {
    background: white;
}
