/* ==========================================================
   GLOBAL BRAND VARIABLES (Unified)
========================================================== */
:root {
  /* Brand colors */
  --primary-gradient: linear-gradient(135deg, #00d781 0%, #057ac0 100%);
  --primary-color-start: #057ac0;
  --primary-color-end: #00d781 ;

  /* Secondary brand color */
  --secondary-color: #002554;

  /* Neutral palette */
  --text-color: #1e1e1e;
  --text-light: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;

  --bg-light: #f8f9fa;
  --background-soft: #f5f7fa;
  --border-color: #e5e7eb;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);

  /* Motion */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radii */
  --radius-small: 4px;
  --radius-medium: 6px;
  --radius-round: 50px;
}

/* ==========================================================
   BASE TYPOGRAPHY & BODY
========================================================== */
body {
  color: var(--text-color);
  background: var(--background-soft);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Section title alignment */
.section-title {
  margin-left: 25px;
  color: var(--secondary-color);
}

/* ==========================================================
   FORM / DATAVERSE STYLING
========================================================== */
.crmEntityFormView {
  border: 1px solid rgba(0, 0, 0, 0.125) !important;
  border-radius: var(--radius-medium);
  background: #fff;
  padding: 20px;
}

/* Inputs */
.form-control {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-small) !important;
  box-shadow: none !important;
}

.form-control.readonly {
  background-color: #fbfafa !important;
}

.form-control:focus {
  border-color: var(--primary-color-start) !important;
  box-shadow: 0 0 0 0.2rem rgba(5, 122, 192, .25) !important;
}

/* Disabled inputs */
.form-control:disabled {
  background: #f9fafb !important;
  opacity: 0.9 !important;
}

/* Remove form tab titles */
.tab-title {
  display: none !important;
}

.tab-column {
  margin-top: 20px;
}

/* Hide specific fields */
td:has(#ppit_hedgingcurrency,
       #ppit_interestratecode,
       #ppit_inflationindicatorcode,
       #ppit_amortizationplancode) {
  display: none !important;
}

/* ==========================================================
   GLOBAL BUTTON STYLING (Bootstrap + PP)
========================================================== */
.btn-primary {
  background: var(--primary-gradient) !important;
  border: none !important;
  color: var(--text-light) !important;
  border-radius: var(--radius-medium) !important;
  font-weight: 600;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary.submit-btn {
  border-radius: var(--radius-small) !important;
  padding: 0.55rem 1.4rem !important;
}

.btn-primary:hover,
.btn-primary:focus {
  opacity: .90 !important;
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55 !important;
}

/* Secondary button */
.btn-secondary {
  background: var(--secondary-color) !important;
  border: none !important;
  color: white !important;
  border-radius: var(--radius-medium) !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 600;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
/* default button */
.btn-default, 
.input-group-addon {
  background: var(--secondary-color) !important;
  border: none !important;
  border-radius: var(--radius-small) !important;
  color: white !important;
}

.input-group .btn-default,
.input-group .input-group-addon {
  border-top-left-radius: 0px !important; 
  border-bottom-left-radius: 0px !important; 
  height: 38px;
}

.input-group .btn-default:hover,
.input-group .input-group-addon {
  border: none !important;
  transform: none !important;
}

.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.btn-default.btn-for-delete{
  background-color: none !important;
}

.btn-default.previous-btn {
  padding: 0.55rem 1.4rem !important;
}

.delete-link.btn-default.btn {
  padding: 0.55rem 1.4rem !important;
}


.btn-secondary:hover,
.btn-secondary:focus,
.btn-default:hover,
.btn-default:focus {
  opacity: .90 !important;
  /* box-shadow: 0 0 0 0.25rem rgba(5, 122, 192, .25) !important; */
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-2px);
}

/* Reset button to default state when not hovered, focused or active */
.btn-primary:not(:hover):not(:focus):not(:active),
.btn-secondary:not(:hover):not(:focus):not(:active),
.btn-default:not(:hover):not(:focus):not(:active),
.btn-danger:not(:hover):not(:focus):not(:active) {
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}


/* Secondary button */
.btn-danger {
  background: #cc1f12;
  border: none !important;
  color: white !important;
  border-radius: var(--radius-medium) !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 600;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-danger:hover,
.btn-danger:focus {
  opacity: .90 !important;
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-2px);
}

/* OOB On-Create Attachment */
input[type="file"] {
    display: none;
}
.custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
}
/* ==========================================================
   ENTITY LIST — FULL STYLING PACKAGE
========================================================== */

/* Hide the old action button */
.view-grid .dropdown.action > .btn {
  display: none;
}

/* New dropdown menu layout */
.view-grid .dropdown.action .dropdown-menu {
  display: flex;
  gap: 8px;
  align-items: right;
  justify-content: right;
  background: transparent;
  border: 0;
  box-shadow: none;
  position: static !important;
}

/* Action icons */
.view-grid .dropdown.action .dropdown-menu li a {
  font-size: 0;
  padding: 6px 10px;
  min-width: 38px !important;
  min-height: 38px !important;
  margin: 0;
  border-radius: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  align-content: center !important;
}

.view-grid .dropdown.action .dropdown-menu li a > span {
  font-size: 16px !important;
  color: var(--text-primary);
}

.view-grid .dropdown.action .dropdown-menu li a:hover {
  background: var(--secondary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.view-grid .dropdown.action .dropdown-menu li a:hover > span {
  color: white;
}

/* CREATE BUTTON */
a.btn.btn-primary.create-action {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  color: white;
  background: var(--primary-gradient);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: var(--transition);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a.btn.btn-primary.create-action:hover {
  background-position: 0 0;
  transform: translateY(-2px);
}

/* ENTITY LIST CONTAINER */
.entitylist {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

/* FILTER PANEL */
.entitylist-filter {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.entitylist-filter input,
.entitylist-filter select,
.entitylist-filter textarea {
  border: 1px solid var(--border-color);
  background: var(--bg-light);
}

.entitylist-filter input:hover,
.entitylist-filter select:hover,
.entitylist-filter textarea:hover,
.entitylist-filter option:hover,
.entitylist-filter input:focus,
.entitylist-filter select:focus,
.entitylist-filter textarea:focus
.entitylist-filter option:focus {
  border-color: var(--primary-color-start) !important;
}

/* Filter apply button */
.btn-entitylist-filter-submit, 
.btn-entitylist-filter-clear {
  border-radius: var(--radius-small) !important;

}

/* CONTENT PANELS */
.content-panel .card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.content-panel .card:hover {
  border-color: var(--primary-color-start);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* TABLES */
.view-grid thead {
  background: var(--bg-light);
  border-bottom: 2px solid var(--border-color);
}

.view-grid tbody tr:hover {
  background: var(--bg-light);
}

/* Toolbar spacing */
.view-toolbar.grid-actions.clearfix > .toolbar-actions {
  margin-top: 8px !important;
  margin-bottom: 16px !important;
}

.toolbar-actions .input-group.entitylist-search .query.form-control, 
.toolbar-actions .input-group.entitylist-search .input-group-btn > .btn{
  height: 38px;
}

/* Responsive */
@media (max-width: 768px) {
  .entitylist-filter {
    padding: 12px;
  }

  a.btn.btn-primary.create-action {
    width: 100%;
  }
}



/* ==========================================================
  SPINNER
========================================================== */

/* ----------------------------------------------
 * Generated by Animista on 2025-12-2 10:44:15
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation rotate-center
 * ----------------------------------------
 */
@-webkit-keyframes rotate-center {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes rotate-center {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}


.rotate-center {
	-webkit-animation: rotate-center 1.5s ease-in-out infinite both;
	        animation: rotate-center 1.5s ease-in-out infinite both;
}

/*
Source - https://stackoverflow.com/a
Posted by Arad, modified by community. See post 'Timeline' for change history
Retrieved 2025-12-03, License - CC BY-SA 4.0
*/

img {
  pointer-events: none;
  user-select: none;
}

/* ==========================================================
  DRAG-AND-DROP
========================================================== */

/* Base Dropzone */
.pp-dropzone {
    border: 2px dashed #a0a7b0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #555;
    background: #fafafa;
    cursor: pointer;
    transition: 
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

/* Hover */
.pp-dropzone:hover {
    border-color: #0078d4;
    background-color: #f3f9ff;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.15);
    transform: scale(1.01);
}

/* Drag Over */
.pp-dropzone.dragover {
    border-color: #005a9e;
    background-color: #e4f1ff;
    color: #005a9e;
    box-shadow: 0 0 12px rgba(0, 90, 158, 0.35);
}

.pp-preview-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.pp-thumb-img {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.pp-remove-btn {
    background: #d9534f;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.pp-remove-btn:hover {
    background: #c9302c;
}

/* Preview Area Centering */
#ppPreviewArea {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Card container */
.pp-preview-card {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    width: 120px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Thumbnail image */
.pp-thumb-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
}

/* Filename text */
.pp-file-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    word-wrap: break-word;
    margin-top: 2px;
}

/* Remove "X" button top-right */
.pp-remove-x {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #d9534f;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pp-remove-x:hover {
    background: #c9302c;
}

.nav > li > a:hover {
  background-color: #056fc7 !important;
}