
      
    


      body { font-family: Montserrat,sans-serif }
     


      {} *{} {}
     


      #IE-warning {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 9999;
        background: white;
      }
      .IE-warning-message {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
      }
    


        @media (max-width: 639px) {
          
        .global-style-aqc0N0_5O {
          font-size: 18px;font-weight: 600;color: rgb(255, 255, 255);text-align: center;border-top-left-radius: 100px;border-top-right-radius: 100px;border-bottom-left-radius: 100px;border-bottom-right-radius: 100px;padding-left: 16px;padding-right: 16px;padding-top: 16px;padding-bottom: 16px;width: 100%;align-items: center;display: inline-flex;cursor: pointer;text-decoration-line: none;text-decoration-thickness: initial;text-decoration-style: solid;text-decoration-color: initial;
      }
        }
        @media (max-width: 767px) and (min-width: 640px) {
          
        .global-style-aqc0N0_5O {
          font-size: 18px;font-weight: 600;color: rgb(255, 255, 255);text-align: center;border-top-left-radius: 100px;border-top-right-radius: 100px;border-bottom-left-radius: 100px;border-bottom-right-radius: 100px;padding-left: 16px;padding-right: 16px;padding-top: 16px;padding-bottom: 16px;width: 50%;align-items: center;display: inline-flex;cursor: pointer;text-decoration-line: none;text-decoration-thickness: initial;text-decoration-style: solid;text-decoration-color: initial;
      }
        }
        @media (max-width: 991px) and (min-width: 768px) {
          
        .global-style-aqc0N0_5O {
          font-size: 18px;font-weight: 600;color: rgb(255, 255, 255);text-align: center;border-top-left-radius: 100px;border-top-right-radius: 100px;border-bottom-left-radius: 100px;border-bottom-right-radius: 100px;padding-left: 16px;padding-right: 16px;padding-top: 16px;padding-bottom: 16px;width: 40%;align-items: center;display: inline-flex;cursor: pointer;text-decoration-line: none;text-decoration-thickness: initial;text-decoration-style: solid;text-decoration-color: initial;
      }
        }
        @media (max-width: 1199px) and (min-width: 992px) {
          
        .global-style-aqc0N0_5O {
          font-size: 18px;font-weight: 600;color: rgb(255, 255, 255);text-align: center;border-top-left-radius: 100px;border-top-right-radius: 100px;border-bottom-left-radius: 100px;border-bottom-right-radius: 100px;padding-left: 16px;padding-right: 16px;padding-top: 16px;padding-bottom: 16px;width: 30%;align-items: center;display: inline-flex;cursor: pointer;text-decoration-line: none;text-decoration-thickness: initial;text-decoration-style: solid;text-decoration-color: initial;
      }
        }
        @media (min-width: 1200px) {
          
        .global-style-aqc0N0_5O {
          font-size: 18px;font-weight: 600;color: rgb(255, 255, 255);text-align: center;border-top-left-radius: 100px;border-top-right-radius: 100px;border-bottom-left-radius: 100px;border-bottom-right-radius: 100px;padding-left: 16px;padding-right: 16px;padding-top: 16px;padding-bottom: 16px;width: 27%;align-items: center;display: inline-flex;cursor: pointer;text-decoration-line: none;text-decoration-thickness: initial;text-decoration-style: solid;text-decoration-color: initial;
      }
        }
        @media (max-width: 639px) {
          
        .global-style-aqc0N0_5O:not([data-gp-component="block"]), .global-style-aqc0N0_5O [data-section-overlay] {
          background-color: rgb(131, 0, 143);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):hover,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-hover, .global-style-aqc0N0_5O [data-section-overlay]:hover, .global-style-aqc0N0_5O [data-section-overlay].gp-hover {
          background-color: rgb(215, 134, 33);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):active,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-active, .global-style-aqc0N0_5O [data-section-overlay]:active, .global-style-aqc0N0_5O [data-section-overlay].gp-active {
          background-color: rgb(32, 45, 60);
      }
        }
        @media (max-width: 767px) and (min-width: 640px) {
          
        .global-style-aqc0N0_5O:not([data-gp-component="block"]), .global-style-aqc0N0_5O [data-section-overlay] {
          background-color: rgb(131, 0, 143);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):hover,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-hover, .global-style-aqc0N0_5O [data-section-overlay]:hover, .global-style-aqc0N0_5O [data-section-overlay].gp-hover {
          background-color: rgb(215, 134, 33);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):active,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-active, .global-style-aqc0N0_5O [data-section-overlay]:active, .global-style-aqc0N0_5O [data-section-overlay].gp-active {
          background-color: rgb(32, 45, 60);
      }
        }
        @media (max-width: 991px) and (min-width: 768px) {
          
        .global-style-aqc0N0_5O:not([data-gp-component="block"]), .global-style-aqc0N0_5O [data-section-overlay] {
          background-color: rgb(131, 0, 143);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):hover,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-hover, .global-style-aqc0N0_5O [data-section-overlay]:hover, .global-style-aqc0N0_5O [data-section-overlay].gp-hover {
          background-color: rgb(215, 134, 33);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):active,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-active, .global-style-aqc0N0_5O [data-section-overlay]:active, .global-style-aqc0N0_5O [data-section-overlay].gp-active {
          background-color: rgb(32, 45, 60);
      }
        }
        @media (max-width: 1199px) and (min-width: 992px) {
          
        .global-style-aqc0N0_5O:not([data-gp-component="block"]), .global-style-aqc0N0_5O [data-section-overlay] {
          background-color: rgb(131, 0, 143);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):hover,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-hover, .global-style-aqc0N0_5O [data-section-overlay]:hover, .global-style-aqc0N0_5O [data-section-overlay].gp-hover {
          background-color: rgb(215, 134, 33);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):active,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-active, .global-style-aqc0N0_5O [data-section-overlay]:active, .global-style-aqc0N0_5O [data-section-overlay].gp-active {
          background-color: rgb(32, 45, 60);
      }
        }
        @media (min-width: 1200px) {
          
        .global-style-aqc0N0_5O:not([data-gp-component="block"]), .global-style-aqc0N0_5O [data-section-overlay] {
          background-color: rgb(131, 0, 143);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):hover,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-hover, .global-style-aqc0N0_5O [data-section-overlay]:hover, .global-style-aqc0N0_5O [data-section-overlay].gp-hover {
          background-color: rgb(215, 134, 33);
      }
        .global-style-aqc0N0_5O:not([data-gp-component="block"]):active,.global-style-aqc0N0_5O:not([data-gp-component="block"]).gp-active, .global-style-aqc0N0_5O [data-section-overlay]:active, .global-style-aqc0N0_5O [data-section-overlay].gp-active {
          background-color: rgb(32, 45, 60);
      }
        }

 .gp-component-id-D3KZdF90e { width: 100%;overflow-wrap: break-word; } @media (max-width: 639px) { .gp-component-id-D3KZdF90e { width: 100%;overflow-wrap: break-word; } } @media (max-width: 767px) and (min-width: 640px) { .gp-component-id-D3KZdF90e { width: 100%;overflow-wrap: break-word; } } @media (max-width: 991px) and (min-width: 768px) { .gp-component-id-D3KZdF90e { width: 100%;overflow-wrap: break-word; } } @media (max-width: 1199px) and (min-width: 992px) { .gp-component-id-D3KZdF90e { width: 100%;overflow-wrap: break-word; } } @media (min-width: 1200px) { .gp-component-id-D3KZdF90e { width: 100%;overflow-wrap: break-word; } }

 .gp-component-id-uPykJx9KbJ { margin-left: auto;margin-right: auto;width: 100%;position: relative;z-index: 15; } @media (max-width: 639px) { .gp-component-id-uPykJx9KbJ { margin-left: auto;margin-right: auto;width: 100%;position: relative;z-index: 15; } } @media (max-width: 767px) and (min-width: 640px) { .gp-component-id-uPykJx9KbJ { margin-left: auto;margin-right: auto;width: 100%;position: relative;z-index: 15;max-width: 640px; } } @media (max-width: 991px) and (min-width: 768px) { .gp-component-id-uPykJx9KbJ { margin-left: auto;margin-right: auto;width: 100%;position: relative;z-index: 15;max-width: 768px; } } @media (max-width: 1199px) and (min-width: 992px) { .gp-component-id-uPykJx9KbJ { margin-left: auto;margin-right: auto;width: 100%;position: relative;z-index: 15;max-width: 992px; } } @media (min-width: 1200px) { .gp-component-id-uPykJx9KbJ { margin-left: auto;margin-right: auto;width: 100%;position: relative;z-index: 15;max-width: 1200px; } }

 .gp-component-id-uTd0bQJxK9.gp-component > [data-section-overlay] { bottom: 0px;top: 0px;left: 0px;right: 0px;position: absolute;z-index: 14; } @media (max-width: 639px) { .gp-component-id-uTd0bQJxK9.gp-component > [data-section-overlay] { bottom: 0px;top: 0px;left: 0px;right: 0px;position: absolute;z-index: 14; } } @media (max-width: 767px) and (min-width: 640px) { .gp-component-id-uTd0bQJxK9.gp-component > [data-section-overlay] { bottom: 0px;top: 0px;left: 0px;right: 0px;position: absolute;z-index: 14; } } @media (max-width: 991px) and (min-width: 768px) { .gp-component-id-uTd0bQJxK9.gp-component > [data-section-overlay] { bottom: 0px;top: 0px;left: 0px;right: 0px;position: absolute;z-index: 14; } } @media (max-width: 1199px) and (min-width: 992px) { .gp-component-id-uTd0bQJxK9.gp-component > [data-section-overlay] { bottom: 0px;top: 0px;left: 0px;right: 0px;position: absolute;z-index: 14; } } @media (min-width: 1200px) { .gp-component-id-uTd0bQJxK9.gp-component > [data-section-overlay] { bottom: 0px;top: 0px;left: 0px;right: 0px;position: absolute;z-index: 14; } }

 .gp-component-id-paIvCQxTo { position: relative;z-index: 15;color: inherit;background-color: transparent;cursor: pointer;text-decoration-line: none;text-decoration-thickness: inherit;text-decoration-style: solid;text-decoration-color: initial; } @media (max-width: 639px) { .gp-component-id-paIvCQxTo { position: relative;z-index: 15;color: inherit;background-color: transparent;cursor: pointer;text-decoration-line: none;text-decoration-thickness: inherit;text-decoration-style: solid;text-decoration-color: initial; } } @media (max-width: 767px) and (min-width: 640px) { .gp-component-id-paIvCQxTo { position: relative;z-index: 15;color: inherit;background-color: transparent;cursor: pointer;text-decoration-line: none;text-decoration-thickness: inherit;text-decoration-style: solid;text-decoration-color: initial; } } @media (max-width: 991px) and (min-width: 768px) { .gp-component-id-paIvCQxTo { position: relative;z-index: 15;color: inherit;background-color: transparent;cursor: pointer;text-decoration-line: none;text-decoration-thickness: inherit;text-decoration-style: solid;text-decoration-color: initial; } } @media (max-width: 1199px) and (min-width: 992px) { .gp-component-id-paIvCQxTo { position: relative;z-index: 15;color: inherit;background-color: transparent;cursor: pointer;text-decoration-line: none;text-decoration-thickness: inherit;text-decoration-style: solid;text-decoration-color: initial; } } @media (min-width: 1200px) { .gp-component-id-paIvCQxTo { position: relative;z-index: 15;color: inherit;background-color: transparent;cursor: pointer;text-decoration-line: none;text-decoration-thickness: inherit;text-decoration-style: solid;text-decoration-color: initial; } }

 .gp-component-id-uTd0bQJxK9 { z-index: auto;position: relative;min-height: 50px; } @media (max-width: 639px) { .gp-component-id-uTd0bQJxK9 { z-index: auto;position: relative;min-height: 50px; } } @media (max-width: 767px) and (min-width: 640px) { .gp-component-id-uTd0bQJxK9 { z-index: auto;position: relative;min-height: 50px; } } @media (max-width: 991px) and (min-width: 768px) { .gp-component-id-uTd0bQJxK9 { z-index: auto;position: relative;min-height: 50px; } } @media (max-width: 1199px) and (min-width: 992px) { .gp-component-id-uTd0bQJxK9 { z-index: auto;position: relative;min-height: 50px; } } @media (min-width: 1200px) { .gp-component-id-uTd0bQJxK9 { z-index: auto;position: relative;min-height: 50px; } }


  :root{
    --ink:#16283D;
    --ink-soft:#3D5266;
    --paper:#F5F7F8;
    --paper-card:#FFFFFF;
    --line:#D8DFE2;
    --teal:#1F6F6B;
    --teal-deep:#164F4C;
    --coral:#D9583F;
    --mustard:#C89B3C;
    --mint-wash: rgba(31,111,107,0.08);
    --shadow: 0 1px 2px rgba(22,40,61,0.06), 0 6px 20px rgba(22,40,61,0.06);
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    background:var(--paper);
    color:var(--ink);
    font-family:'Inter',sans-serif;
    min-height:100vh;
    -webkit-font-smoothing:antialiased;
  }
  .app{max-width:1180px;margin:0 auto;padding:32px 24px 80px;}

  /* ---------- Header ---------- */
  .app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;}
  .brand{display:flex;align-items:center;gap:14px;}
  .brand-mark{width:44px;height:44px;flex-shrink:0;}
  .brand-text h1{
    font-family:'Lora',serif;font-weight:700;font-size:1.5rem;margin:0;letter-spacing:-0.01em;color:var(--ink);
  }
  .brand-text p{margin:2px 0 0;font-size:0.8rem;color:var(--ink-soft);font-family:'IBM Plex Mono',monospace;letter-spacing:0.02em;}
  .header-stats{display:flex;gap:28px;}
  .stat{text-align:right;}
  .stat .num{font-family:'IBM Plex Mono',monospace;font-size:1.4rem;font-weight:600;color:var(--teal-deep);display:block;line-height:1.1;}
  .stat .lbl{font-size:0.72rem;color:var(--ink-soft);text-transform:uppercase;letter-spacing:0.06em;}

  /* Signature pulse divider */
  .pulse-wrap{margin:22px 0 6px;height:34px;overflow:hidden;}
  .pulse-wrap svg{width:100%;height:100%;display:block;}
  .pulse-line{
    fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
    stroke-dasharray:900;stroke-dashoffset:900;
    animation:draw 1.8s ease-out forwards;
  }
  @keyframes draw{to{stroke-dashoffset:0;}}
  @media (prefers-reduced-motion: reduce){.pulse-line{animation:none;stroke-dashoffset:0;}}

  /* ---------- Folder tabs ---------- */
  .tabs{display:flex;gap:6px;margin-top:18px;}
  .tab-btn{
    font-family:'Lora',serif;font-weight:600;font-size:0.95rem;
    background:#E7ECEC;color:var(--ink-soft);
    border:1px solid var(--line);border-bottom:none;
    padding:11px 22px 13px;border-radius:10px 10px 0 0;
    cursor:pointer;position:relative;top:1px;
    transition:background .15s, color .15s, transform .15s;
  }
  .tab-btn:hover{color:var(--ink);}
  .tab-btn.active{
    background:var(--paper-card);color:var(--teal-deep);
    box-shadow:0 -2px 8px rgba(22,40,61,0.05);
    transform:translateY(-2px);
    border-color:var(--line);
  }
  .tab-panel{display:none;}
  .tab-panel.active{display:block;}

  .card{
    background:var(--paper-card);
    border:1px solid var(--line);
    border-radius:0 10px 10px 10px;
    padding:26px;
    box-shadow:var(--shadow);
  }

  .panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px;}
  .panel-head h2{font-family:'Lora',serif;font-size:1.15rem;margin:0;font-weight:600;}
  .panel-head .sub{font-size:0.82rem;color:var(--ink-soft);margin-top:3px;}

  .btn{
    font-family:'Inter',sans-serif;font-weight:600;font-size:0.85rem;
    background:var(--teal);color:#fff;border:none;border-radius:7px;
    padding:9px 16px;cursor:pointer;transition:background .15s;
  }
  .btn:hover{background:var(--teal-deep);}
  .btn.ghost{background:transparent;color:var(--teal-deep);border:1px solid var(--teal);}
  .btn.ghost:hover{background:var(--mint-wash);}
  .btn.small{padding:5px 10px;font-size:0.76rem;border-radius:6px;}
  .btn.danger{background:transparent;color:var(--coral);border:1px solid var(--coral);}
  .btn.danger:hover{background:rgba(217,88,63,0.08);}

  /* ---------- Ledger list ---------- */
  .ledger{
    background-image: repeating-linear-gradient(var(--paper-card) 0 47px, var(--line) 47px 48px);
    border-radius:8px;overflow:hidden;
  }
  .row{
    display:grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
    align-items:center;gap:12px;
    padding:12px 14px;height:47px;box-sizing:border-box;
    cursor:pointer;
  }
  .row.head{
    font-family:'IBM Plex Mono',monospace;font-size:0.7rem;color:var(--ink-soft);
    text-transform:uppercase;letter-spacing:0.05em;cursor:default;height:auto;padding-bottom:8px;
    background:transparent;
  }
  .row:not(.head):hover{background:var(--mint-wash);}
  .cell-name{font-weight:600;}
  .cell-id{font-family:'IBM Plex Mono',monospace;font-size:0.8rem;color:var(--ink-soft);}
  .pill{
    display:inline-block;font-size:0.72rem;font-weight:600;padding:3px 10px;border-radius:20px;
    font-family:'Inter',sans-serif;
  }
  .pill.pendiente{background:rgba(200,155,60,0.15);color:var(--mustard);}
  .pill.confirmada{background:rgba(31,111,107,0.14);color:var(--teal-deep);}
  .pill.atendida{background:rgba(22,40,61,0.08);color:var(--ink-soft);}
  .pill.pagada{background:rgba(31,111,107,0.14);color:var(--teal-deep);}
  .pill.urgente{background:rgba(217,88,63,0.14);color:var(--coral);}

  .empty{padding:40px 20px;text-align:center;color:var(--ink-soft);}
  .empty .big{font-family:'Lora',serif;font-size:1.05rem;color:var(--ink);margin-bottom:6px;}

  /* ---------- Modal ---------- */
  .overlay{
    position:fixed;inset:0;background:rgba(22,40,61,0.45);
    display:none;align-items:center;justify-content:center;z-index:50;padding:20px;
  }
  .overlay.open{display:flex;}
  .modal{
    background:var(--paper-card);border-radius:12px;max-width:480px;width:100%;
    max-height:88vh;overflow-y:auto;padding:26px 26px 22px;
    box-shadow:0 20px 60px rgba(22,40,61,0.25);
  }
  .modal h3{font-family:'Lora',serif;margin:0 0 4px;font-size:1.15rem;}
  .modal .sub{font-size:0.82rem;color:var(--ink-soft);margin-bottom:18px;}
  .field{margin-bottom:14px;}
  .field label{display:block;font-size:0.78rem;font-weight:600;color:var(--ink-soft);margin-bottom:5px;}
  .field input, .field select, .field textarea{
    width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:7px;
    font-family:'Inter',sans-serif;font-size:0.9rem;background:var(--paper);color:var(--ink);
  }
  .field textarea{resize:vertical;min-height:64px;}
  .field-row{display:flex;gap:12px;}
  .field-row .field{flex:1;}
  .modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px;}

  /* Patient chart modal */
  .chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:6px;}
  .chart-meta{font-size:0.82rem;color:var(--ink-soft);margin-bottom:16px;}
  .chart-meta span{margin-right:14px;}
  .note-item{
    border-left:3px solid var(--teal);padding:8px 0 8px 14px;margin-bottom:10px;
  }
  .note-item .date{font-family:'IBM Plex Mono',monospace;font-size:0.72rem;color:var(--ink-soft);}
  .note-item .txt{font-size:0.88rem;margin-top:2px;}

  .money{font-family:'IBM Plex Mono',monospace;font-weight:600;}

  .toast{
    position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);
    background:var(--ink);color:#fff;padding:11px 20px;border-radius:8px;font-size:0.85rem;
    opacity:0;transition:opacity .2s, transform .2s;pointer-events:none;z-index:100;
    font-family:'Inter',sans-serif;
  }
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

  @media(max-width:720px){
    .row{grid-template-columns:1.4fr 1fr auto;}
    .row .hide-sm{display:none;}
    .header-stats{gap:16px;}
  }


