    /* Search input wrapper (optional but recommended) */

input {
  font-size: 16px;
}
textarea {
  font-size: 16px;
}
.search-form {
  max-width: 320px;
  position: relative;
}

/* Django form-control */
.search-form .form-control {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 12px;
  border: 1.8px solid #cbd5f5;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  background: #fff;
}

/* Focus state */
.search-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

/* Placeholder */
.search-form .form-control::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

/* Search icon */
.search-form::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center;
}


    .entry-card {
        background: white;
        border-radius: 14px;
        padding: 16px 20px;
        margin-bottom: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.07);
        border-left: 6px solid #64748b;
    }

    .entry-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .product-name {
        font-size: 18px;
        font-weight: 700;
        color: #0f172a;
    }

    /* Badges */
    .badge {
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        color: white;
    }

    .badge-in {
        background: #2563eb; /* blue */
    }

    .badge-out
     {
        background: #dc2626; /* red */
    }

    .destination {
        background: #e2e8f0;
        color: #334155;
        font-size: 12px;
        padding: 3px 8px;
        border-radius: 6px;
        margin-left: 8px;
    }

    .stock-details {
        margin-top: 10px;
        font-size: 14px;
        color: #475569;
    }

    .label {
        font-weight: bold;
        color: #334155;
    }

    .reversed-tag {
        margin-top: 10px;
        display: inline-block;
        padding: 4px 10px;
        background: #f87171;
        color: white;
        border-radius: 6px;
        font-size: 12px;
        font-weight: bold;
    }




    .networth-card {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  padding: 18px 22px;
  border-radius: 14px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 25px rgba(37,99,235,.35);
}

.networth-card .label {
  font-size: 13px;
  opacity: .9;
  letter-spacing: .3px;
}

.networth-card .amount {
  font-size: 24px;
  font-weight: 800;
}



    .networth-card {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  padding: 18px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(37,99,235,.35);
  width: fit-content;
}

/* Icon container */
.icon-wrap {
  background: rgba(255,255,255,.18);
  padding: 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

/* SVG styling */
.icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Text */
.text-wrap {
  display: flex;
  flex-direction: column;
}

.label {
  font-size: 13px;
  opacity: .9;
}

.amount {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .3px;
}



    .all-inline *{display: inline-block;}


.wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 10px;
  box-sizing:border-box;
  flex-direction: column;
}

.card{
  width: 600px;
  max-width:100%;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:36px 28px 28px;
  box-sizing:border-box;
  position:relative;
}

.title{
  font-weight:800;
  letter-spacing:1px;
  margin:0 0 18px 0;
  color: #2a2f36;
}

.badge{
  display:inline-block;
  background:linear-gradient(180deg, #21b96a, #19a95d);
  color:white;
  padding:8px 14px;
  border-radius:10px;
  font-weight:700;
  font-size:13px;
  box-shadow: 0 4px 10px rgba(33,185,106,0.12);
  margin-bottom:18px;
}

.not-paid{
  display:inline-block;
  color:white;
  padding:8px 14px;
  border-radius:10px;
  font-weight:700;
  font-size:13px;
  box-shadow: 0 4px 10px rgba(33,185,106,0.12);
  margin-bottom:18px;
}

.meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px 18px;
  align-items:end;
  margin-top:6px;
  margin-bottom:18px;
}

.meta .label{
	  display:inline-block;
  color:var(--muted);
  margin-bottom:6px;
  font-weight:600;
}

.meta .value{
  display:inline-block;
  font-weight:800;
  color:#1f2933;
}

.divider{
  height:1px;
  background:var(--border);
  margin:18px 0;
  border-radius:2px;
}

table.invoice{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

table.invoice thead th{
  text-align:left;
  font-size:13px;
  letter-spacing:0.8px;
  color:var(--muted);
  padding:10px 0 12px 0;
  font-weight:700;
}

table.invoice tbody td{
  padding:16px 0;
  vertical-align:middle;
  border-bottom:1px solid var(--border);
}

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

.qty, .price{
  text-align:center;
}

.total-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:18px;
  font-size:20px;
  font-weight:800;
}


/* Big blue download button aligned center-right like the mock */
.btn-download{
  margin-left:auto;
  background: linear-gradient(180deg,var(--primary), #256fd6);
  color:white;
  padding:14px 34px;
  border-radius:14px;
  font-weight:700;
  font-size:18px;
  border:0;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(47,128,237,0.18);
}

/* small responsiveness */
@media (max-width:420px){
  .card{ padding:20px; border-radius:20px; }
  .title{ font-size:22px; }
  .meta .value{ font-size:18px; }
}











    /* Common status styles */
    .status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      font-size: 14px;
      line-height: 1;
    }

    /* ICON only */
    .status__icon {
      width: 28px;
      height: 28px;
      display: inline-grid;
      place-items: center;
      border-radius: 6px;
      background: rgba(0,0,0,0.03);
    }


    /* True / False colors */
    .true     { color: var(--true); }
    .false    { color: var(--false); }

    /* SVG animation - draw stroke */
    svg.status-svg { display: block; width: 20px; height: 20px; overflow: visible; }
    svg.status-svg .stroke {
      fill: none;
      stroke-width: 2.6;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 100;
      stroke-dashoffset: 100;
      animation: draw 450ms ease-out forwards;
    }

    /* subtle scale-in */
    .status__icon svg { transform-origin: center; animation: pop .25s ease-out both; }

    @keyframes draw {
      to { stroke-dashoffset: 0; }
    }
    @keyframes pop {
      from { transform: scale(.85); opacity: 0; }
      to   { transform: scale(1); opacity: 1; }
    }

    /* Cross rotates a bit */
    svg.status-svg.cross .stroke { transform-origin: center; animation: draw 430ms ease-out forwards, shake 300ms ease-out 430ms both; }
    @keyframes shake {
      0% { transform: rotate(0deg); }
      30% { transform: rotate(-8deg); }
      60% { transform: rotate(6deg); }
      100% { transform: rotate(0deg); }
    }

    /* small helper styles */
    .muted { color: var(--muted); font-weight: 600; font-size: 13px; }
    .stack { display:flex; flex-direction:column; gap:10px; }
    .examples { display:flex; gap:12px; flex-wrap:wrap; }

    .true {
  color: #2563eb !important;       /* blue-600 */
}

    .false {
  color: #dc2626 !important;        /* red-600 */
}

    .status svg {
      width: 22px;
      height: 22px;
    }

    .status svg circle {
      fill: currentColor;
    }

    .status svg path {
      fill: none;
      stroke: #fff;
      stroke-width: 2.4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* COLORS */
    .approved { color: #16a34a; }   /* green */
    .pending  { color: #f59e0b; }   /* amber */
    .cancelled{ color: #dc2626; }   /* red */








        /* Overlay */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

/* Box */
.modal-content {
  background: white;
  padding: 22px;
  border-radius: 14px;
  width: 320px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: pop 0.25s ease-out;
}

.modal-content h3 {
  margin: 0 0 8px;
}

.modal-content p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 18px;
}

/* Buttons */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn.danger {
  background: #dc2626;
  color: white;
}

.btn.secondary {
  background: #e5e7eb;
  color: #111827;
}

/* Animation */
@keyframes pop {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Trigger button style */
.open-btn {
  color: #dc2626;
  font-weight: 600;
  text-decoration: underline;
}



    /* Base date input styling */
.custom-date {
    width: 30%;
    height: 30px;
    padding: 8px 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover */
.custom-date:hover {
    border-color: #6366f1;
}

/* Focus */
.custom-date:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Disabled */
.custom-date:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

/* Error state */
.custom-date.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.custom-date,
input[type="date"] {
    background-image: none !important;
    background-repeat: no-repeat;
    background-position: initial !important;
}
